What code to cancel changes to a record?

K

Kjell Harnesk

Hi!

I want a button to do what the escape-key does to a record that is edited,
ie cancel the changes made to the record before changes are saved. Whatb is
the code for such a button?
 
A

ALESSANDRO Baraldi

Kjell Harnesk said:
Hi!

I want a button to do what the escape-key does to a record that is edited,
ie cancel the changes made to the record before changes are saved. Whatb is
the code for such a button?

May be:

Private Sub cmdUndo_Click()
Me.Undo
End Sub

Hope this help.
 
Top