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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undo changes in each record upon exit 2

Status
Not open for further replies.

Hinfer

Programmer
Sep 14, 2001
69
CA
I have a form that displays all the current 5 employees. How do I create a button so that I can exit the form and not save the changes. The problem is that each row is a record.

DoCmd.DoMenuItem A_FORMBAR, A_EDITMENU, A_UNDOFIELD, , A_MENU_VER20
DoCmd.Close A_FORM, "LkEmployees"

If I have changed 2 records then this will only undo the last record that I changed.

Is there some way to undo the changes in all the records. Access seems to save automatically when I move to different records. Can I disable this or is my code wrong?

I have tried Docmd.Close, , acsaveno but this again works for the last record changed.
 
Yes Hinfer, I can take a look at it.
Email me at tin.tin.thio@terabeam.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top