N
Neil Greenough
I have included a stop button on a form to exit a database. The code for
this is
Private Sub QuitApplication_Click()
On Error GoTo Err_QuitApplication_Click
DoCmd.Quit
Exit_QuitApplication_Click:
Exit Sub
Err_QuitApplication_Click:
MsgBox Err.Description
Resume Exit_QuitApplication_Click
End Sub
I want it so that, when it is clicked, a message box appears saying "Are you
sure you want to exit?" With a yes or no answer.
Anybody able to edit my code for me pretty please with jelly tots?
this is
Private Sub QuitApplication_Click()
On Error GoTo Err_QuitApplication_Click
DoCmd.Quit
Exit_QuitApplication_Click:
Exit Sub
Err_QuitApplication_Click:
MsgBox Err.Description
Resume Exit_QuitApplication_Click
End Sub
I want it so that, when it is clicked, a message box appears saying "Are you
sure you want to exit?" With a yes or no answer.
Anybody able to edit my code for me pretty please with jelly tots?