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  

Saving Date and Time



 
 
Thread Tools Display Modes
  #1  
Old February 28th, 2008, 01:21 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 22
Default Saving Date and Time

Hi,

I have a form called frmDetails and I have set a text box (txtDate) in
the form with the control source of =Format(Now(),"dddd"", ""mmm d
yyyy"", ""hh:nn:ss ampm") but the problem is I want this Time & Date
to be recorded in the table (called tblDetails) as it needs to be used
for referancing when entries were entered into the database.
Can anyone tell me how to do this.

Thanks

Fiona
  #2  
Old February 28th, 2008, 02:51 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Saving Date and Time

Fiona,
Add a Date/Time field to your table. (ex. DTNow)
Add that field to your form.
On your form, make the Default Value for that field...
(assuming your calculation is correct, and I think it is)

=Format(Now(),"dddd"", ""mmm d yyyy"", ""hh:nn:ss ampm")

Whenever a new record is created, the Default calculation will set the
value of DTNow.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

wrote in message
...
Hi,

I have a form called frmDetails and I have set a text box (txtDate) in
the form with the control source of =Format(Now(),"dddd"", ""mmm d
yyyy"", ""hh:nn:ss ampm") but the problem is I want this Time & Date
to be recorded in the table (called tblDetails) as it needs to be used
for referancing when entries were entered into the database.
Can anyone tell me how to do this.

Thanks

Fiona



 




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 09:57 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.