dbTalk Databases Forums  

How to retrieve the creation date of an Access database record

comp.database.ms-access comp.database.ms-access


Discuss How to retrieve the creation date of an Access database record in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeroen Elias
 
Posts: n/a

Default How to retrieve the creation date of an Access database record - 02-22-2006 , 03:39 AM






Hello,

Is it possible to retrieve the date when a record is created in an Access
database table?
And if so, how can I do that?

Thanks in advance,
Jeroen Elias



Reply With Quote
  #2  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: How to retrieve the creation date of an Access database record - 03-27-2006 , 09:57 AM






On Wed, 22 Feb 2006 10:39:25 +0100, "Jeroen Elias" <j.elias (AT) bluedesk (DOT) nl> wrote:

Quote:
Hello,

Is it possible to retrieve the date when a record is created in an Access
database table?
And if so, how can I do that?
Access doesn't store this information; you would have to add a column to every table and query the table for that info.
For example, you could add a dteTimeStamp to each table and set the DefaultValue to Now() ... this would insert the
machine date/time each time a record is added to the table.

You could then determine the creation date by this:

SELECT dteTimeStamp FROM SomeTable WHERE YourIDField=xxx

Scott McDaniel
scott (AT) takemeout_infotrakker (DOT) com
www.infotrakker.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.