One approach is to add another field to the table to hold something like
[UpdateDate]. Then, in your form (you ARE using a form, right?!), you can
set the value of that field to today's date (or today's date/time). The
AfterUpdate event for the form (one of the many good reasons to be using
forms, not working directly in the tables) would be a convenient place to
set that value.
The date for a new record is easy. Make the default value of a date field in
the table either Date() - which is just the date - OR Now() which is the date
and time.
Who did it is a little more complicated. Below is a link to a function that
will pull it. However you will need to run this function in a form on
something like the Before Insert event. If someone enters data directly into
the table, it will not work.
I've used that approach too, but I have 'long-winded' customers who start a
new record and walk away. By waiting 'til they 'close' the new record, I
get a more accurate date/time value...
But maybe you've been blessed by 'prompt' customers!<g>
Default value = Now() will work well if you ever import records and if you
really want to now approximately when the record was committed using the
form's after insert event can overwrite the default value.
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Default value = Now() will work well if you ever import records and if you
really want to now approximately when the record was committed using the
form's after insert event can overwrite the default value.
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
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.