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!

Referring to old_value and new_value in BeforeUpdate

Status
Not open for further replies.
Jul 1, 2003
21
DE
Hello community,

is there a way to prompt the user in a form's BeforeUpdate event like "Are you sure you want to change " & old_value & " to " & new_value & "?".
The key is getting the old and the new value of a text field programmatically.
Or do I have to get them in a conventional way (reading old_value from Db and new_value from the object's .value)?

Thanks in advance,
mpegjunkie
 
The oldvalue property contains the old value... you can compare it to the value property or maybe even the text property. I think you want to use the afterupdate property so that the value property has the correct value for the comparison. I could be confused about needing afterupdate. It has been a while since I played with oldvalue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top