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

How do you create cancel/save buttons? 1

Status
Not open for further replies.

IanGlinka

IS-IT--Management
Feb 28, 2002
215
US
I need to know how to create cancel/save buttons that will allow the users of my form to "undo" the changes they have made, or save them and update the given record.

Thanks
Ian
 
You need to create unbounded forms.... Open an recordset and pasted the values into the textboxes.

Save button can be made by:
REC.EDIT
...
...
REC.UPDATE
 
Put the following in the onclick event of you cancel button

Me.undo

That will reset all your changes to their original values.

On the onclick event of your update button, put the following line of code.

Me.dirty = false

That’s it.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top