Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / September 2006

Tip: Looking for answers? Try searching our database.

automatically recording date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick - 29 Sep 2006 18:00 GMT
In my form, I want to be able to have the date automatically entered for a
record, after a change or modification is made to an existing record.
Douglas J. Steele - 29 Sep 2006 18:03 GMT
Add a LastModified Date/Time field to your table.

In your form's BeforeUpdate event, add code to set that field to Now().

Signature

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

> In my form, I want to be able to have the date automatically entered for a
> record, after a change or modification is made to an existing record.
Klatuu - 29 Sep 2006 18:05 GMT
Use the form's Current event:
Me.txtMyDateField = Date()

> In my form, I want to be able to have the date automatically entered for a
> record, after a change or modification is made to an existing record.
Douglas J. Steele - 29 Sep 2006 18:11 GMT
I don't think that's really what you want. That'll update the date every
time you access it, even if no change was made.

Signature

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

> Use the form's Current event:
> Me.txtMyDateField = Date()
>
>> In my form, I want to be able to have the date automatically entered for
>> a
>> record, after a change or modification is made to an existing record.
Ron2006 - 29 Sep 2006 19:51 GMT
Try the OnDirty Event

That says a change was made somewhere.

Ron
Douglas J. Steele - 29 Sep 2006 23:01 GMT
I still think BeforeUpdate is a more appropriate event.

Signature

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

> Try the OnDirty Event
>
> That says a change was made somewhere.
>
> Ron
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.