Automatically Update "lastupdate" field

P

Porthale

Hi folks

Really could use some help here, I have an access 2000 database, I need
it to automatically add a date to the "lastupdate" field when a record
is modified.

Any help would be greatly appriciated.

I can email the database if needed.

Cheers
Darren
 
A

Allen Browne

Access cannot do this for you at the table level.

If all records are modified through a form, use the form's BeforeUpdate
event procedure to write the date:

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.[lastupdate] = Now()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top