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

DoCmd.RunCommand acCmdUndo

Status
Not open for further replies.

itwg

Programmer
Feb 18, 2003
11
CA
Hey everyone,

I am using DoCmd.RunCommand acCmdUndo to undo changes in my form if the user hits the cancel button. It works great for the main form but it does not work for the subform. How do I undo changes in both the main form and subform on the cancel button?????

Any Ideas,
Itwg
 
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70

This is what the wizard provides and works good on both main and subforms.

Me.Undo on the form level may work as well, I don't know about the subform for this one.

Sean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top