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