Docmd.Quit does not work

mafhobb

Registered User.
Local time
Today, 01:43
Joined
Feb 28, 2006
Messages
1,249
Hi

I have the following line of code near the end of an error-reporting function:
Code:
        If ErrorNumber = 3075 Or ErrorNumber = 2471 Or ErrorNumber = 2450 Or ErrorNumber = 2491 Then
            MsgBox "In der Ausführung ist ein Fehler aufgetreten. Sie müssen die Database neu starten. Error = " & ErrorNumber & "; " & ErrorCode & ". Form = " & ErrorForm & ". Control = " & ErrorControl
            DoCmd.Quit
Ocasionally I get error 3075 and the msgbox above appears, however, after closing the message box the database does not quit.

Under what circumstances would Docmd.Quit not work?

Thanks

mafhobb
 
Try using
Application.quit
instead.

Docmd.quit is legacy.
 

Users who are viewing this thread

Back
Top Bottom