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

Automatic date in current record afterupdate 2

Status
Not open for further replies.
Jan 25, 2005
8
DE
Hello,

Looking for a method to automatically update a field of my record with the current date and time after it has been modified..
-tried with setvalue but didn't work.

So basically i want the field to contain date & time of modification so i can use it later to see which record have been recently modified..

Thanks a lot for your help

Best regards,

chrisjones99
 
Place the code on the forms after update event, that should do the trick

Herman

They say that crime doesn't pay... does that mean my job is a crime?
 
In the BeforeUpdate event of the form:
Me![timestamp control] = Now()

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks for your answer herman,

the thing is i tried afterupdate event but probably don't have the right code...
can you help me with the code:

i tried to create a variable X and then affect the now() formula to this variable X, then tried to take the name of the field and affects the variable X to it but it wouldn't work..

Can you help ? Thank you very much!!!!
 
Thanks PHV, this worked perfectly !!!!!!!!!

Many many thanks to both of you for your time..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top