Exit Application

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
 
L

Linda

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

Linda
 
F

fredg

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
 
G

Gargamil

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.

.............................................................................
.............................................................................
.......
 
A

Andy_HR

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
 

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