You must set the
FilterOn property of the form to
True to apply the filter. If you want the filter to be applied when the form opens, you can set the
FilterOn property to
True on the Open event of the form by using a macro or Visual Basic code, or you can apply the filter manually.
Method 1: Using a Macro
To apply a filter when the form is opened, create the following macro and
set the form's
OnOpen property to the following macro:
Action: SetValue
Item: FilterOn
Expression: True
Method 2: Using Visual Basic Code
To apply a filter when the form is opened, set the form's
OnOpen property to the following event procedure:
Private Sub Form_Open(Cancel As Integer)
Me.FilterOn = True
End Sub
Method 3: Applying a Filter Manually
To apply a filter after the form is opened:
- Click Apply Filter on the Form View toolbar.
-or-
- Click Apply Filter/Sort on the Records menu.