Exit error

G

Gary D.

I have just converted an Access 97 mdb to Access 2003.

In my application I have a MainMenu form (using a modified switchboard).
The form has an Exit button to quit Access.
It uses the code;
Application.Quit acQuitPrompt (was Application.Quit acSaveYes in Access 97)

This always used to work just fine and apart from changing the option
"acSaveYes " to "acQuitPrompt " I have not changed anything else in the code.

However, when I click the Exit button I now get Error 91 (object not set...
etc.).

I have also tried changing Application.Quit acQuitPrompt to Dcmd.Quit but I
still get Error 91.

When the error occurs I cannot see the code to debug it because the database
does close down and exit, so it would appear to be working successfully.

Any ideas what might be causing this Error 91 problem?
 

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