Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset data in a form

Status
Not open for further replies.

AKMonkeyboy

IS-IT--Management
Feb 4, 2002
141
US
When I edit a record in a form and am not happy with the changes I can hit the "esc" key and all fields return as they were before I started typing. Is there VBA code I could assign to an event or button to do this? I'd like to be able to reset all fields at once, without coding every field in the form.
 
Yes,

The ( seemingly ) little known UNDO command

You can call the Undo command on a single control or on the whole Form.

You need the Whole Form flavour
Me.Undo



QED

G LS
 
Thanks. You'd think I would have known that. My problem is my questions never seem to be worded properly for the help file.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top