E
ExcessAccess97
Is it possible to create a field for dates, that will
always contain the current date? Maybe it could get
todays date from the pc?
always contain the current date? Maybe it could get
todays date from the pc?
When will today's date appear in he field?
Is there an easy way to make this happen for all of my old
records?
The system clock on your PC.
It's quite possible - if you make clear what you are trying to
accomplish!
Is it possible to create a field for dates, that will
always contain the current date?
and *THAT* is the question we've been answering.
ok...
Take your pick. If you want to record the date and time that the
record was EXPORTED, create a Query based on your table, and include a
calculated field in it by typing:
RecordExported: Now()
Now() returns the current date and time; Date() just the date (which -
again - is what you had asked for).
If, instead, you want to timestamp each record with the date and time
that the contents of the record in the table change, you must use some
VBA code on a Form (and must ensure that the record can only be
updated using the Form). In the Form's BeforeUpdate event put code
like
Me!txtTimeStamp = Now()
where txtTimeStamp is a textbox bound to the date/time field.
Take your pick. If you want to record the date and time that the
record was EXPORTED, create a Query based on your table, and include a
calculated field in it by typing:
RecordExported: Now()
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.