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

undo changes in an unbound form 1

Status
Not open for further replies.

easycode

Programmer
Jan 28, 2005
195
US
I was trying to use the dirty event/property, but they work only if the controls within the form are bound to the table, what if not.

thanks for your help
 
Hi!

The controls you are interested in have an .OldValue property that will keep the previous value until the update is complete. You can loop through the controls and reset them to the old value.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
I was checking on the help file, and even this OldValue property works only with bound controls, but what if my controls are unbound, they are not linked to a table directly, but later i will link the controls to the table
thanks for replying jebry
 
Hi!

Sorry about the misdirect there. The only other thing I can think of is to set up an array at the form level and load it with the control names and value in the Current event. You can then use the array to reset the values if needed.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
And what about the DefaultValue property ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi!

Another thought is to loop through the controls and put their current values in the .Tag property. Then you can reset them is necessary.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top