Runtime Error

thart21

Registered User.
Local time
Yesterday, 22:00
Joined
Jun 18, 2002
Messages
236
All of a sudden I get the following error message when exiting my application through the command button:


"Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:\Program Files\Microsoft Office\MSACCESS.EXE

abnormal program termination"


My command button code:


Private Sub LogOut_Click()
'On Error GoTo Err_LogOut_Click

'Exits out of the Database completely

DoCmd.Quit
Response = acDataErrContinue

Exit_LogOut_Click:
Exit Sub

Err_LogOut_Click:
MsgBox Err.Description
Resume Exit_LogOut_Click

End Sub

Any help to point me in the right direction would be appreciated!

Thanks,

Toni
 
Are all objects (forms/reports) closed when you press that button, except the one with the button?
Is there any other code running at the same moment (like un UnLoad-event of the form or something like that)?
 
Thanks for your reply-I have my db on a shared drive which opens through a link on our intranet home page (through a .bat file). The db opens to the main employee form and this is the only form that is opened when I am trying to exit-the exit db button is on this form. Prior to this problem, I added the following code to maximize the window "on load", but, have since removed it and it made no difference.

DoCmd.Run Command acCmdAppMaximize
DoCmd.Maximize

Thank you!!

Toni
 
Is it on each computer?
If yes, then I agree with VBITS.

Else, you can try to import all objects in a new database...
 

Users who are viewing this thread

Back
Top Bottom