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

Can I Undo a record in a form and subform with one command button? 1

Status
Not open for further replies.

Reghita

Programmer
Sep 9, 2002
16
AU
Hi Guys

I have added an Undo command Button on a Parent Form, and it's works fine for that Parent form only. but is there any way that i can also undo a record in the subform using one cmd Button?

can someone direct me in the right direction

Thanks Heaps
 
The best solution for this is to start a transaction when the form opens and commit it after each record it saved. That way, you can rollback the transaction (undoing the action) on both the main form and the sub forms.

The following MSKB articles explain the problem you're encountering and offer code samples for the solution that they (and I) recommend.

ACC: Main Form Record Edits Saved When Subform Gets Focus

ACC: Unable to Undo or Rollback Main Form and Subform Changes

Hope this helps! Good Luck!
Ami D. Shroyer, MCP
amidenise@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top