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

Identify when controls have been modified

Status
Not open for further replies.

bmc1234

Programmer
Jul 21, 2005
50
US
I have a form with about 40 controls on it in the form of text boxes, combo boxes, and check boxes. In the afterupdate event of the form I want to identify which fields have been changed and write the new values of those fields to a table that keeps track of changes. I don't want to have to put code in the afterupdate event of every control. Is there any way to identify whether a particular control has been modified? I figure it would be something like the Dirty property, but that is only valid for the record as a whole, not individual fields.
 
This is an Access question. VB Forms don't have an AfterUpdate event, since forms aren't assumed to be bound to data. However, here's a link Check out the section on the OldValue property of bound controls. If that doesn't solve your problem, perhaps you'll want to repost to the correct forum. If you do this, then say so on this thread.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top