Exit Application

  • Thread starter Thread starter Gargamil
  • Start date Start date
G

Gargamil

I've set up a switchboard for my app that has an Exit Application button as
defined on the Switchboard manager. The problem is this button closes the
database but does not close Access. How can I get the single button to
close the database and Access??

g
 
Where is it?. Our database closes but access remains open too. We have to
ctrl+alt+del to get it closed

Linda
 
Where is it?. Our database closes but access remains open too. We have to
ctrl+alt+del to get it closed

Linda

Code the command button click event:
DoCmd.Quit

or ..

Application.Quit
 
This text if from the other thread. Good
luck........................................................................
.....

The following command will cause Access to close the open database *and*
quit
the application:

DoCmd.Quit

In order to make this work with your switchboard, you may want to modify the
"HandleButtonClick" function in the code module behind the switchboard form.
You
will need to locate the section in the "Select Case" structure that reads:

Case conCmdExitApplication

Under that section, comment out the line that reads "CloseCurrentDatabase"
and
insert, below it, the "DoCmd.Quit" command described above.

.............................................................................
.............................................................................
.......
 
Gargamil said:
I've set up a switchboard for my app that has an Exit Application button as
defined on the Switchboard manager. The problem is this button closes the
database but does not close Access. How can I get the single button to
close the database and Access??

in module just make one function

function quitapp()
DoCmd.Quit acExit
end function

In my app i have one query that runs on exit and this way it allways exits
right
 
Back
Top