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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.