Auto Date on changes

F

Frank Fitchner

I have a form with all the information coming from a Query..... What I am
trying to do is update the "date modied" field whenever something is changed
on the form.... I can't seem to get on update to work or anything to work
for that matter... Any help would be greatly appreciated....

Frank
 
R

Rick Brandt

Frank Fitchner said:
I have a form with all the information coming from a Query..... What I am
trying to do is update the "date modied" field whenever something is changed
on the form.... I can't seem to get on update to work or anything to work
for that matter... Any help would be greatly appreciated....

In the BeforeUpdate event of the form have code similar to. . .

Me![date modified] = Now()
or
Me![date modified] = Date()

.. . .depending on whether you want the date and time or just the date.
 
J

Joan Wild

In the BeforeUpdate event for the form set your date modified field to
either Date() or Now(). Date will store the date, while Now will store the
date and time.

Me![Date Modified] = Date()
 

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