L
LGarcia
Hi all,
I have a hidden form that runs some code when access shuts down. I added
this code to the hidden forms unload event:
If MsgBox("Do you want to exit?", vbYesNo, "Exit") = vbNo Then
Cancel = True
End If
Works fine from my switchboard button (runs a macro with only the Quit
command) and if use the X in the top right corner. Problem is when I run it
in runtime.If I use the X in the top right corner to shut down it works
fine. But if I use the button on the switchboard (runs the Quit macro) I get
an error: "Execution of this application has caused a runtime error"
Anyone know why this is happening?
Thanks!
LGarcia
I have a hidden form that runs some code when access shuts down. I added
this code to the hidden forms unload event:
If MsgBox("Do you want to exit?", vbYesNo, "Exit") = vbNo Then
Cancel = True
End If
Works fine from my switchboard button (runs a macro with only the Quit
command) and if use the X in the top right corner. Problem is when I run it
in runtime.If I use the X in the top right corner to shut down it works
fine. But if I use the button on the switchboard (runs the Quit macro) I get
an error: "Execution of this application has caused a runtime error"
Anyone know why this is happening?
Thanks!
LGarcia