PC Review


Reply
Thread Tools Rate Thread

adding a date

 
 
Simon
Guest
Posts: n/a
 
      13th Oct 2006
Every time i enter a new customer i would like to keep a recored of the
date i entered that customers.

Whats the best way of doing this when i enter a new customer in the
customer form. The only thing i need to make sure it does it when i
changes any detaisl of the cusomer form it does not changethe date


Thanks

simon

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      13th Oct 2006
Add a DateTime field in your table named RecordDate with default of =Now()

"Simon" wrote:

> Every time i enter a new customer i would like to keep a recored of the
> date i entered that customers.
>
> Whats the best way of doing this when i enter a new customer in the
> customer form. The only thing i need to make sure it does it when i
> changes any detaisl of the cusomer form it does not changethe date
>
>
> Thanks
>
> simon
>
>

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      13th Oct 2006
On 13 Oct 2006 14:54:50 -0700, Simon wrote:

> Every time i enter a new customer i would like to keep a recored of the
> date i entered that customers.
>
> Whats the best way of doing this when i enter a new customer in the
> customer form. The only thing i need to make sure it does it when i
> changes any detaisl of the cusomer form it does not changethe date
>
> Thanks
>
> simon


Code the Form's BeforeUpdate event:
If Me.NewRecord and IsNull([DateField]) Then
[DateField] = Date
End If

If you want the time as well as the date then use:
[DateField] = Now()
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
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
Access Ver 2.0 Adding days to a date to give target date excluding weekends? michael.nilsen@sgs.com Microsoft Access Macros 1 30th Nov 2006 02:20 AM
Access Ver 2.0 Adding days to a date to give target date excluding weekends? Michael Microsoft Access Forms 2 19th Nov 2006 10:52 PM
Access Ver 2.0 Adding days to a date to give target date excluding weekends? michael.nilsen@sgs.com Microsoft Access VBA Modules 1 19th Nov 2006 01:06 PM
Changing the date format & adding the date range to the header =?Utf-8?B?UHVyZUV2aWw=?= Microsoft Access 1 6th Oct 2006 11:31 PM
Reports---adding Month-To-Date and Year-To-Date totals Patricia R. Turner Microsoft Access Reports 1 19th Sep 2003 06:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 AM.