Sets or returns the value of the On Load box in the Properties window of a form. Read/write String.
expression.OnLoad
expression Required. An expression that returns one of the objects in the Applies To list.
The Load event occurs when a form is opened and its records are displayed.
The OnLoad 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 Load box in the form's Properties window):
If the On Load box is blank, the property value is an empty string.
The following example prints the value of the OnLoad property in the Immediate window for the "Order Entry" form.
Debug.Print Forms("Order Entry").OnLoad