PDA

Click to See Complete Forum and Search --> : [RESOLVED] Application.Quit not working?


Static
Mar 1st, 2006, 01:43 PM
In access.. I am using this in the Form_Unload Event

Access.CommandBars("Menu Bar").Reset
Access.CloseCurrentDatabase

Access.Quit acQuitSaveNone 'Doesnt work
DoCmd.Quit acQuitSaveNone 'Doesnt work

it should close the whole app.. but its only closing the current db (from prev line)

any idea?
(there is no other code running after that)

RobDog888
Mar 1st, 2006, 02:04 PM
Yes, dont close the db as that will terminate your macro or module code.

Use this...
Application.Quit acQuitSaveNone

Static
Mar 1st, 2006, 02:16 PM
Perfect. Thanks!

RobDog888
Mar 1st, 2006, 02:19 PM
Funny thing is that you had posted it in your thread title but were using Access instead of Application. You were soo close ;)

Static
Mar 1st, 2006, 02:55 PM
lol.. actually I thought it was the same thing :rolleyes: