How to cancel NewRecord?

D

Dean Slindee

How can I use a button's click event to host code that allows a user to
cancel a new record when one field in the form belonging to that record has
been filled in?



Thanks,

Dean Slindee
 
M

Marshall Barton

Dean said:
How can I use a button's click event to host code that allows a user to
cancel a new record when one field in the form belonging to that record has
been filled in?


As long as the record has not been saved, you can use
Me.Undo
to restore the record to its state before any changes were
made.

You don't really need a button for this. Just train your
users to hit the ESC key twice. (Once if they only wnat to
undo changes to the current control.
 
Top