Access 2003
When a user quit Access in my database, he can click on the button "quit" that has a code "DoCmd.Quit". If this button is clicked, then I can have access perform a calculation of
A = B + 1.
////////////////////////////////////
Private Sub QUIT_Click()
A = B + 1
DoCmd.Quit
End Sub
///////////////////////////////////
If the user just happend to click on an X-box on the upper right hand corner of Access to quit the application, then how would I trap this event so that I can have Access perform the calculation of A = B + 1 ?
When a user quit Access in my database, he can click on the button "quit" that has a code "DoCmd.Quit". If this button is clicked, then I can have access perform a calculation of
A = B + 1.
////////////////////////////////////
Private Sub QUIT_Click()
A = B + 1
DoCmd.Quit
End Sub
///////////////////////////////////
If the user just happend to click on an X-box on the upper right hand corner of Access to quit the application, then how would I trap this event so that I can have Access perform the calculation of A = B + 1 ?