PC Review


Reply
Thread Tools Rate Thread

Event program to add date and time of Entry

 
 
Hulk
Guest
Posts: n/a
 
      21st Jul 2004
I have a form which controls a database, I would like to add the date
and time that the new entry was made into the database to be stored for
reference. I have put two records in the database, one is DateModified and
the other is Time Modified. How can I get the form to add the date and time
to the form so that it will not be changed when I get in to edit the form?
I would like to have it be locked once the information is entered so that I
can look and see when the record was added to the database.
Should I use a expression or a macro? I need to know how to build
either.

Thanks In Advance
Bill


 
Reply With Quote
 
 
 
 
Jim Allensworth
Guest
Posts: n/a
 
      21st Jul 2004
On Wed, 21 Jul 2004 17:49:48 -0400, "Hulk" <(E-Mail Removed)>
wrote:

> I have a form which controls a database, I would like to add the date
>and time that the new entry was made into the database to be stored for
>reference. I have put two records in the database, one is DateModified and
>the other is Time Modified. How can I get the form to add the date and time
>to the form so that it will not be changed when I get in to edit the form?
>I would like to have it be locked once the information is entered so that I
>can look and see when the record was added to the database.
> Should I use a expression or a macro? I need to know how to build
>either.
>


First you don't need one field for data and another for time. They are
the same thing - it just depends on how the date/time is formatted.
Besides it doesn't seem logical to have a modified date/time yet not
allow modifications.

So, what you might do is create a field for DateCreated and set its
Default Value in the table to Now(). When a new recorded is created it
will be time stamped with the date/time.

On the form don't allow edits by setting the textbox Locked property
to Yes

- Jim
 
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
How do I time/date stamp an entry in a note from a calendar entry? Sweet Microsoft Outlook Calendar 1 2nd Apr 2010 07:33 PM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 02:08 AM
get the date and time of the event log entry I just created interuser@hotmail.com Microsoft C# .NET 1 26th Jul 2004 01:57 PM
get the date and time of the event log entry I just created interuser@hotmail.com Microsoft VB .NET 1 26th Jul 2004 01:57 PM
Data Entry Restrictions & Date/Time Entry =?Utf-8?B?S01jR2Vl?= Microsoft Excel Misc 3 30th Dec 2003 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:07 PM.