Button to close DB, but leave Access open.... 
Author Message
 Button to close DB, but leave Access open....

I'd like to add a button to a form that will close the database that is
currently open but leaves Access open.  I can program a button to exit the
application, close a specific form or the current form, but not one that
will shut the database down while leaving the application open.

Thoughts?

James



Fri, 17 May 2002 03:00:00 GMT  
 Button to close DB, but leave Access open....
In the Exit button's OnClick event:

Private Sub CmdExit_Click()
CloseCurrentDatabase
End Sub

Fred

Quote:

> I'd like to add a button to a form that will close the database that is
> currently open but leaves Access open.  I can program a button to exit the
> application, close a specific form or the current form, but not one that
> will shut the database down while leaving the application open.

> Thoughts?

> James




Fri, 17 May 2002 03:00:00 GMT  
 Button to close DB, but leave Access open....
Duh -- thanks!

James


Quote:
> In the Exit button's OnClick event:

> Private Sub CmdExit_Click()
> CloseCurrentDatabase
> End Sub

> Fred


> > I'd like to add a button to a form that will close the database that is
> > currently open but leaves Access open.  I can program a button to exit
the
> > application, close a specific form or the current form, but not one that
> > will shut the database down while leaving the application open.

> > Thoughts?

> > James




Fri, 17 May 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Close command button allows form to be closed when required fields are left blank

2. Disable Access Close Button not Form Close Button?

3. Access - Disable Main DB Window Close Button

4. Access-Disable Main DB Window close button

5. Close database but leave access open

6. Exit Application button closes DB but doesn't exit Access

7. How do I close current DB and open another DB using VBA

8. Open Query Closes Access DB

9. Open another Access db with a button?

10. Open an Access DB from an Access Db and make it current


 
Powered by phpBB® Forum Software © phpBB Group