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