PC Review


Reply
Thread Tools Rate Thread

How do I record the date of the first record entry.

 
 
Frank Martin
Guest
Posts: n/a
 
      14th May 2010
I have a small database and I want to record, in a table
field, the date at which a record is added (but not edited).

I want this to be permanent.

Should I make the "primary key" this date?

Please help, Frank


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      14th May 2010
"Frank Martin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a small database and I want to record, in a table field, the date
> at which a record is added (but not edited).


In table design view, add the field to record when the entry was made.

In the lower pane of table design, set the Default Value property of this
field to:
=Date()
if you just want the date. If you want the date and time, use:
=Now()

When you create a form to show the entries, don't provide a text box for
this field, so the user won't have a way to modify the date.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.




 
Reply With Quote
 
Frank Martin
Guest
Posts: n/a
 
      14th May 2010

"Allen Browne" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Frank Martin" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I have a small database and I want to record, in a table
>> field, the date at which a record is added (but not
>> edited).

>
> In table design view, add the field to record when the
> entry was made.
>
> In the lower pane of table design, set the Default Value
> property of this field to:
> =Date()
> if you just want the date. If you want the date and time,
> use:
> =Now()
>
> When you create a form to show the entries, don't provide
> a text box for this field, so the user won't have a way to
> modify the date.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.




Thanks, this worked.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic date entry in new record Seph Microsoft Access Form Coding 2 4th Sep 2009 04:25 AM
Record entry by date Francis Microsoft Excel Worksheet Functions 3 29th Jan 2008 10:53 PM
Find date of last record entry for current user p-rat Microsoft Access Form Coding 2 15th Jan 2008 01:26 PM
What function will return the most recent entry date for a record? =?Utf-8?B?RmlsbHkzNA==?= Microsoft Access Queries 3 7th Sep 2007 12:27 PM
How do I restrict date entry to only once for each record? Mary'. =?Utf-8?B?QmxhaXJl?= Microsoft Access 1 28th Mar 2005 08:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 PM.