I have an Access 2010 database which I'm trying to get it automatically stamp the date when specific field is populated or modified.
get MS Access 2010 to stamp the actual date on a field created for this purpose
Collapse
X
-
Tags: None
-
Thank you Rabbit for your response. But, can you be more specific. I'm a newby. I tried some options but cannot get the expected results. Thank you, again.Comment
-
Thank you Rabbit. That's what I'm doing right now. It seems to be a simple task, however maybe it does need to write some code in order to get what I want to perform.Comment
-
I would use the form's BeforeUpdate event like:
For the BeforeInsert you could use a test for the field being filled (<> "") when you want the initial filling recorded too.Code:Private Sub Form_BeforeUpdate(Cancel As Integer) If Me.FieldName <> Me.FieldName.OldValue Then Me.LastUpdated = Now() End If End Sub
The LastUpdated field can be placed hidden on the form.
Nic;o)Comment
Comment