Access does not have triggers, so you cannot achieve this at the
table-level.
The code you have is the right approach, provided all changes are made
through the form.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Blake Patterson" <bl***@blakespot.com> wrote in message
news:90**************************@posting.google.c om...
I have a subroutine I want to run whenever an Access record is
updated.
Sub Form_BeforeUpdate(Cancel As Integer)
Me!LastUpdated = Now
End Sub
It updates this date field with the current date whenever a record is
changed. How do I tie this sub to the field in Access, so that it
fires on change?