Sets or returns the value of the On Current box in the Properties window of a form. Read/write String.
expression.OnCurrent
expression Required. An expression that returns one of the objects in the Applies To list.
The Current event occurs when the focus moves to a record, making it the current record, or when the form is refreshed or requeried.
The OnCurrent 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 Current box in the form or report's Properties window):
If the On Current box is blank, the property value is an empty string.
The following example associates the Current event with the macro "Current_Macro" for the "Order Entry" form.
Forms("Order Entry").OnDeactivate = "Current_Macro"