G
Graham
I have a MainTable and an InputForm.
I have two columns on the MainTable, DateCreated & DateUpdated. Both are
formatted as short date, with an input mask.
DateCreated works fine with†=Date()†in the Default Property of the
MainTable, and shows up in a control on InputForm, when a new record is
added, the current date is added.
DateUpdated should show the date, on that record, of any amendments to that
record. DateUpdated has no Default Property in the MainTable, and in the
MainForm Control Properties I have entered :
Private Sub DateUpdated_BeforeUpdate(Cancel As Integer)
Me.DateUpdated = Date
End Sub
It doesn’t work!
I’ve entered it in the BeforeUpdate & the AfterUpdate Event.
I’ve added () after Date
I’ve changed the fullstop in Me.DateUpdated to an exclamation mark
Me!DateUpdated
Nothing appears to work. Can anyone see where I’m going wrong ? Do I need to
be amending any other Prooperties ?
Many Thanks
I have two columns on the MainTable, DateCreated & DateUpdated. Both are
formatted as short date, with an input mask.
DateCreated works fine with†=Date()†in the Default Property of the
MainTable, and shows up in a control on InputForm, when a new record is
added, the current date is added.
DateUpdated should show the date, on that record, of any amendments to that
record. DateUpdated has no Default Property in the MainTable, and in the
MainForm Control Properties I have entered :
Private Sub DateUpdated_BeforeUpdate(Cancel As Integer)
Me.DateUpdated = Date
End Sub
It doesn’t work!
I’ve entered it in the BeforeUpdate & the AfterUpdate Event.
I’ve added () after Date
I’ve changed the fullstop in Me.DateUpdated to an exclamation mark
Me!DateUpdated
Nothing appears to work. Can anyone see where I’m going wrong ? Do I need to
be amending any other Prooperties ?
Many Thanks