Sets or returns the value of the On Delete box in the Properties window of a form. Read/write String.
expression.OnDelete
expression Required. An expression that returns one of the objects in the Applies To list.
The Delete event occurs when the user performs some action, such as pressing the DEL key to delete a record, but before the record is actually deleted.
The OnDelete value will be one of the following, depending on the selection chosen in the Choose Builder window (accessed by clicking the Build button next to the On Delete box in the form's Properties window):
If the On Delete box is blank, the property value is an empty string.
The following example associates the Delete event with the "Form_Delete" event for the "Order Entry" form.
Forms("Order Entry").OnDelete = "[Event Procedure]"