A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do i set an autodate on access without it changing?



 
 
Thread Tools Display Modes
  #1  
Old August 26th, 2008, 04:48 PM posted to microsoft.public.access.forms
abi1008
external usenet poster
 
Posts: 1
Default how do i set an autodate on access without it changing?

basically im creating a database/form at work and need a automatic date in on
field for the day the record is completed. however this date has to remain
the same. any ideas how ot do it?
  #2  
Old August 26th, 2008, 05:07 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default how do i set an autodate on access without it changing?

If what you are asking is how do I put the date a record was created in a
field in the record, but not ever change it, it is fairly simple.

You just need a text box control on you form that is bound to the field.
Since you will not be entering anything, you can make it invisible. In the
Default Value property of the text box just put:

If you want just the date use:

=Date()

If you want the date and time use:

=Now()

The Default Value only affects new records.

--
Dave Hargis, Microsoft Access MVP


"abi1008" wrote:

basically im creating a database/form at work and need a automatic date in on
field for the day the record is completed. however this date has to remain
the same. any ideas how ot do it?

  #3  
Old August 26th, 2008, 05:15 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default how do i set an autodate on access without it changing?

On Tue, 26 Aug 2008 08:48:00 -0700, abi1008 wrote:

basically im creating a database/form at work and need a automatic date in on
field for the day the record is completed. however this date has to remain
the same. any ideas how ot do it?


Your message is not clear.
Try telling us in different words what it is you are wanting to do.
Perhaps, also, an example.

You might also think about proper capitalization and punctuation. It's
to your advantage to make your message easily understood by others.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #4  
Old August 26th, 2008, 06:30 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default how do i set an autodate on access without it changing?

On Tue, 26 Aug 2008 08:48:00 -0700, abi1008
wrote:

basically im creating a database/form at work and need a automatic date in on
field for the day the record is completed. however this date has to remain
the same. any ideas how ot do it?


Set the DefaultValue property of the table field, or if you prefer the form
control, to =Date(). On a Form, set the Locked property of the textbox bound
to this field to Yes so the user can't overtype it.

--

John W. Vinson [MVP]
 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.