Form beforeinsert and beforeupdate events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When adding a new record do both get fired?
I need to set a date when a status field gets changed, so I need to set it
in initial insert and also when updating an exisitng record; currently I have
in form before update event:
If Me!StatusID <> Me!StatusID.OldValue Then
Me!StatusDate = Now()
End If

Is this sufficient? Thanks.
 
Yes, both events fire for new records, in this order:

BeforeInsert ==> BeforeUpdate ==> AfterUpdate ==> AfterInsert
 

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

Back
Top