Switchboard Form - Exit application

M

Marie

Hello,

I Have used the switchboard manager to create a
switchboard for my database. One of the items on my
switchboard is Exit this database and the only command
available to select was Exit Application which closes the
active database.

Would there be any where in the code that I can change
this to exit access not just the current database.

In design form of the switchboard form under OnOpen there
is alot of code that has been generated from the
switchboard manager. Could I change the following code
somehow:

' Exit the application.
Case conCmdExitApplication
CloseCurrentDatabase

Or would it be somewhere else that I could change the code.

Thanks...
 
H

Helen Trim

Change the line:
CloseCurrentDatabase

to:
DoCmd.Quit

This exits Access.

HTH
Helen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top