Cancelling a New Record Entry

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

I need a button ("Cancel") on my AddInsertionOrder form
that:

a) Undos any information that was entered (if any)
b) Closes the form
 
Private Sub cmdCancel_Click()
If Me.Dirty Then
Me.Undo
End If
DoCmd.Close acForm, Me.Name
End Sub
 
Back
Top