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
 
Back
Top