One way to do it is to create a function that saves the control's value in the control's tag property.
Private sub SaveValue(ctl as control)
ctl.tag = ctl.value
end sub
you can call this sub when you open the form, passing the control into it. This would hold the "old" value of the control until you close the form or decide to call the sub again.
You can also use the OldValue property of a control which stores the original value of a control until changes are committed to disk. Look it up in help for more detail, it's quite effective.
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.