After DelConfirm

This event occurs after the record is actually deleted or after deletion is cancelled in the BeforeDelConfirm event procedure. Use the AfterDelConfirm event to move to another record or to display a message indicating whether the deletion was successful.

The Status argument allows you to check whether deletion progressed normally or was cancelled by the user or Visual Basic. The following constants can be used for the Status argument in the AfterDelConfirm event procedure: acDelete(6), acDeleteCancel(1), acDeleteOK(0), or acDeleteUserCancel(2).

The event procedure in Hands-On 24-9 displays a message when a record is successfully deleted.

0 0

Post a comment