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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Timestamping

Status
Not open for further replies.

BNPMike

Technical User
Sep 17, 2001
1,818
GB
For web applications I'm thinking of using timestamps to control simultaneous updates. Your application retrieves rows and their timestamps, and when it tries to make an update it first checks the row timestamps are not now later, as that would indicate someone else has updated the row in the meantime.

However I've just carried out a test, and timestamps are not automatically updated. If you don't provide one on INSERT it will remain null.

Is there any way to get Jet to automatically timestamp records? Leaving it to the application is less safe.

 
You can set a default on a date/time field of the current date and/or time. There are no triggers that can be set to automatically track last udpated. You would need to write this value in your web app.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top