ksilvoso
asked on
AccessCommand Button to cancel an Add New Record
Is there an AccessCommand Button to cancel an Add New Record?
once you go to the new record...are you trying to cancel IF they have already entered something into the new record?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can also close the form with
Private Sub cmdCancel_Click()
If Me.Dirty Then Me.Undo
DoCmd.Close acForm, Me.Name
End Sub
Private Sub cmdCancel_Click()
If Me.Dirty Then Me.Undo
DoCmd.Close acForm, Me.Name
End Sub
ASKER
Worked great. Thanks!
will take you back to the first record