PC Review


Reply
Thread Tools Rate Thread

Default Value =now() in table

 
 
Steve Stad
Guest
Posts: n/a
 
      29th Jan 2010
I have a Default Value of =now() for a DateEntered field formatted as General
Date. I noticed when I copy pasted a group of 4 records the DateEntered
field did not update automatically. Could it be because I copy/pasted a
block of records or can you tell me when/how it is supposed to update
automatically from w/in the table. The DateEntered works OK on the form but
the form add/enters one record typed at a time - is that the difference?
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      29th Jan 2010
Realistically, copy-and-paste is seldom a good idea when working with
databases.

Default values only apply for new records, and you're allowed to overtype
the value before the record's saved. Since the records you're copying
presumably have the DateEntered field populated, Access takes that value,
since there's no need for a default value!

More appropriate than copy-and-paste is to run an Append query and specify
which fields should be appended (in addition to which rows)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Steve Stad" <(E-Mail Removed)> wrote in message
news:B5BF9C4B-5B17-4879-86E7-(E-Mail Removed)...
>I have a Default Value of =now() for a DateEntered field formatted as
>General
> Date. I noticed when I copy pasted a group of 4 records the DateEntered
> field did not update automatically. Could it be because I copy/pasted a
> block of records or can you tell me when/how it is supposed to update
> automatically from w/in the table. The DateEntered works OK on the form
> but
> the form add/enters one record typed at a time - is that the difference?



 
Reply With Quote
 
Steve Stad
Guest
Posts: n/a
 
      1st Feb 2010
Thanks Doug - You are exactly right. TimeStamp for date entered works
w/Append. Now - I see the blank value I was pasting in date entered
overtypes the default value =now().

"Douglas J. Steele" wrote:

> Realistically, copy-and-paste is seldom a good idea when working with
> databases.
>
> Default values only apply for new records, and you're allowed to overtype
> the value before the record's saved. Since the records you're copying
> presumably have the DateEntered field populated, Access takes that value,
> since there's no need for a default value!
>
> More appropriate than copy-and-paste is to run an Append query and specify
> which fields should be appended (in addition to which rows)
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Steve Stad" <(E-Mail Removed)> wrote in message
> news:B5BF9C4B-5B17-4879-86E7-(E-Mail Removed)...
> >I have a Default Value of =now() for a DateEntered field formatted as
> >General
> > Date. I noticed when I copy pasted a group of 4 records the DateEntered
> > field did not update automatically. Could it be because I copy/pasted a
> > block of records or can you tell me when/how it is supposed to update
> > automatically from w/in the table. The DateEntered works OK on the form
> > but
> > the form add/enters one record typed at a time - is that the difference?

>
>
> .
>

 
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
Default Value from Another Table MollyDog8 Microsoft Access Getting Started 2 13th Jan 2009 10:18 AM
Can a record in a table have a default value from another table? gtslabs Microsoft Access Forms 3 10th Dec 2008 09:44 PM
Pivot Table - Default Settings for Table Options =?Utf-8?B?TmFjaG8=?= Microsoft Excel Misc 0 25th Feb 2005 06:05 PM
Default value of a Table in Sql server To default value in DataSet scheme itzik Microsoft ADO .NET 9 15th Feb 2005 01:49 PM
Default Value in Table Jonathan Smith Microsoft Access Database Table Design 9 7th Nov 2003 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.