Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date data entered 1

Status
Not open for further replies.

Stephenlyn

Programmer
May 25, 2000
34
AU
Hi All

I have a database and I need to know when the each data record was entered.

Any ideas....

cheers

Steve
 
In the default value property of the field, try entering:

=Now()
or
=Date()

- now will give a timestampe, date will give the current date.

Should you also be interested in when a record is updated/changed, It would probably be best using the before update event of a form where this data is changed, something like this

[tt]me!txtUpdatedDate.value = now ' or
me!txtUpdatedDate.value = date[/tt]

- won't need (parens) in code

Roy-Vidar
 
Thanks Roy-Vidar

The form update event works a treat.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top