How to add a button to Unsave data entry form

E

elillis

I have a data entry form.

If I enter data and then hit the escape key twice the record is not saved.
This is what I want.

How can I add a button to the form to do the same thing?

ed
 
N

Nikos Yannacopoulos

Ed,

You need a single line of code:

DoCmd.RunCommand acCmdUndo

in the command button's Click event.

HTH,
Nikos
 
Top