ACC: Setting Filter Property of Form Does Not Apply FilterID: Q148299
|
Moderate: Requires basic macro, coding, and interoperability skills.
Setting the Filter property of a form doesn't apply a filter.
The Filter property holds the filter that will be applied when a filter is activated, but does not activate filtering.
You need to set the FilterOn property of the form to True to activate 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. You can do this using either a SetValue action in a macro or through Visual Basic code, as demonstrated below.
Action
--------
SetValue
SetValue Action
----------------
Item: FilterOn
Expression: True
Private Sub Form_Open(Cancel As Integer)
Me.FilterOn = True
End Sub
This behavior is by design.
Keywords : FmsProp
Version : 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999