Access Shell Window gets left open after application.quit

G

Guest

I've checked all my open and load events of every form in my application, I'm
not leaving any recordsets open.

So what would cause the following code to leave the Access shell open
After it shuts down the database and forms?
====================================
If MsgBox("Are you sure you want to quit?", vbYesNo + vbQuestion, "Quit?") =
vbYes Then
Application.Quit
End If
'====================================
 
A

Allan Murphy

Try this code

If MsgBox("Are you sure you want to quit?", vbYesNo + vbQuestion, "Quit?") =
vbYes Then
DoCmd.Quit acSave
End If
 
V

Van T. Dinh

Dirk Goldgar did a bit of experimentation with this and he concluded that
DoComd.Quit works more reliably than Application.Quit.

Suggest changing to DoCmd and see if it makes any difference.
 
G

Guest

That worked ... thanks!

Van T. Dinh said:
Dirk Goldgar did a bit of experimentation with this and he concluded that
DoComd.Quit works more reliably than Application.Quit.

Suggest changing to DoCmd and see if it makes any difference.
 

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