Auto date

S

Sojaminc

I am trying to create a field in a form that if anything is changed on it, it
will automatically update the date to current date. Is this possible?
 
M

Marshall Barton

Sojaminc said:
I am trying to create a field in a form that if anything is changed on it, it
will automatically update the date to current date. Is this possible?


Make sure the last changed date/time field is in the form's
record source table/query. Then use the form's BeforeUpdate
event:

Me.lastchanged = Now
 
J

J_Goddard via AccessMonster.com

Hi -

You can do this in the On Dirty event of the form, which fires as soon as you
make any change to any field on the form.

me![Mydatefield] = date()


John
 

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