Checking for field update

J

John

Hi

is it possible to check if certain fields have been changed, just before the
record is saved?

Thanks

Regards
 
G

Guest

John,

Although there is not a specific property for an individual field to tell
you that the field has changed, you can use the "Tag" property of any field
to set a value that will indicate that the field has been changed.

Just use the On Change event of the field and use code to set a value in the
Tag property of that field, like:

me.tag = "Changed"

Then just before before the record is saved, just check the value of the Tag
property of each field you need to check.
 
V

Van T. Dinh

In the Form_BeforeUpdate Event, you can check the (bound) Control.Value
against the same Control.OldValue to see if the value of the binding Field
has been changed or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top