Question How do I get the 'Exit' button on the switchboard to exit Access? (1 Viewer)

CarysW

Complete Access Numpty
Joined
Jun 1, 2009
Messages
213
Currently, I have an 'Exit' button on my Switchboard which should 'Exit Application' (as per choices given in Switchboard Manager). But when I click the button it just exits the DB I am working on and takes me back to the Access start page (with the templates etc on).

Is there something I need to do to get it to close Access altogether?

I'm using Access 2007 on Windows XP Prof.
 

Banana

split with a cherry atop.
Joined
Sep 1, 2005
Messages
6,315
Did you try this code:

Code:
DoCmd.Quit
?
 

CarysW

Complete Access Numpty
Joined
Jun 1, 2009
Messages
213
Did you try this code:

Code:
DoCmd.Quit
?

No, as I said, I'm doing the Switchboard via the Switchboard Manager. I'm guessing the only way is going to be to do a Switchboard via VBA instead? Which is a pain. :(
 

Banana

split with a cherry atop.
Joined
Sep 1, 2005
Messages
6,315
If the Manager doesn't have option for "Quit" then I would imagine you'd need to use either macro or VBA. It's not that painful because it's only one line of code and I've already given that line so you can just copy and paste it in.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom