Time Stamp on a record

M

mate

I have a subform within a form. When a user creates a new
record in the subform, I would like to have the date/time
automatically stamped on that record at the time of
creation. I've tried doing this, but whenever i access
that record at a later time, it shows up with the current
time instead of when it was created. Any help would be
great! thanks. mate
 
F

Fredg

Try setting the Before Update event of the sub form:

If IsNull([DateField]) then
[DateField] = Now
End If
 

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