M
MB
I have a form for data entry with the record source tblBreakInfo. Allow
Additions, Deletions, Edits and Filters are set to “Yes.â€
When I add a command button, such as “Quit Application†it does not work. I
have changed the form’s “Allow Edits†to No and it still won’t work. The “On
Click†property of the button says Event Procedure and has the following VBA:
Private Sub cmdQuit2_Click()
On Error GoTo Err_cmdQuit2_Click
If Me.Dirty Then Me.Dirty = False
DoCmd.Quit
Exit_cmdQuit2_Click:
Exit Sub
Err_cmdQuit2_Click:
MsgBox Err.Description
Resume Exit_cmdQuit2_Click
End Sub
I have this problem with any command button I add (i.e., new record). It
works if I create a macro to close program or go to new record, but not a
command button with the wizard. I am using Access 2007.
Thank you so much for your assistance.
Additions, Deletions, Edits and Filters are set to “Yes.â€
When I add a command button, such as “Quit Application†it does not work. I
have changed the form’s “Allow Edits†to No and it still won’t work. The “On
Click†property of the button says Event Procedure and has the following VBA:
Private Sub cmdQuit2_Click()
On Error GoTo Err_cmdQuit2_Click
If Me.Dirty Then Me.Dirty = False
DoCmd.Quit
Exit_cmdQuit2_Click:
Exit Sub
Err_cmdQuit2_Click:
MsgBox Err.Description
Resume Exit_cmdQuit2_Click
End Sub
I have this problem with any command button I add (i.e., new record). It
works if I create a macro to close program or go to new record, but not a
command button with the wizard. I am using Access 2007.
Thank you so much for your assistance.