[RESOLVED] Application.Quit not working?
In access.. I am using this in the Form_Unload Event
VB Code:
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)
Re: Application.Quit not working?
Yes, dont close the db as that will terminate your macro or module code.
Use this...
VB Code:
Application.Quit acQuitSaveNone
Re: Application.Quit not working?
Re: [RESOLVED] Application.Quit not working?
Funny thing is that you had posted it in your thread title but were using Access instead of Application. You were soo close ;)
Re: [RESOLVED] Application.Quit not working?
lol.. actually I thought it was the same thing :rolleyes: