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

Allow to cancel update on subforms`

Status
Not open for further replies.

daneharnett

Programmer
May 26, 2003
39
AU
I have a database that allows users to update data in the tables, i would like the ability to have a 'Cancel' button so that the changes are only committed when the user clicks 'OK' or 'Save'... if the user clicks cancel then the changes should be disregarded...

I can do this easily with 1 form by using the BeforeUpdate Event...

But what about if i have a subform on the form... the data in the subform is saved but the main data would be disregarded?

Any solutions? or other avenues?
 
You could put the cancel button on the subform, and in the Onclick event of the cancel button do this:

Me.Undo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top