When you use Date(), where does it pull THAT date from?
The system clock on your PC.
Great, that seems perfect.
It's quite possible - if you make clear what you are trying to
accomplish!
In any exchange between communicatiing parties, it may
(and often does) take several attempts to accurately
convey "what one means." (Particularly when one who has
inadequate knowledge of a subject wishes to seek a higher
level of knowledge from another.) I appreciate your
patience and your help.
You asked:
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.
And NOW I see that, though it turns out to only be one
answer of many and with stipulations (Date() only works
for new records but not existing ones).
Just trying to better articulate what I'm trying to do.
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).
That's exactly what I asked for.
Okay, I'm trying this right now. I've been creating this
products file with a make-table query. I'll add
RecordExported: Now() to the criteria of the Date field.
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.
Would barely know where to begin with this latter option.
Jarrod