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

Capture Date when record is edited 2

Status
Not open for further replies.

Quintios

Technical User
Mar 7, 2002
482
US
I have a database where the records are often edited. When reports are printed out, folks need to know if they have the "latest and greatest", so I include the "RevisionDate" in the report.

Up until now, I've been clicking in a box to capture =NOW(), but I'd like to do this automatically whenever a field in the record is edited or updated.

How would I accomplish this?
Onwards,

Q-
 
If you have a particular field that will flag the record as being updated, then you can use the after update of that field with:

Me![Name of field] = Now()

Also, could probably use the afterupdate event for the entire record (form).
If we knew what it was we were doing, it would not be called research, would it? - Albert Einstein [atom]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Hi!

In the before update event for the form use the following:

YourDateField = Now()

hth
Jeff Bridgham
bridgham@purdue.edu
 
Thanks to both of you! One star each! :)
Onwards,

Q-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top