The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers. SYMPTOMSWhen you apply a filter or a sort to a form and then click Remove Filter/Sort on the Records menu, it appears that the filter or sort has been removed. However, if you check the Filter property and OrderBy property in a Visual Basic for Applications procedure or in the form's property sheet, you see that these properties contain the values that were in effect before you removed the filter or sort. CAUSEThe Apply Filter/Sort and Remove Filter/Sort commands on the Records menu change only the values of the FilterOn and OrderByOn properties. These commands do not affect the values of the forms's Filter or OrderBy properties. Selecting Remove Filter/Sort on the Records menu simply sets FilterOn and OrderbyOn to False. As a result, the form displays all of the records, because, although the filter or sort is still present, it is no longer in effect. RESOLUTIONUse either of the following methods to completely remove a filter or sort from a form. Method 1Use the form's property sheet to remove the filter or sort. To do so, follow these steps:
Method 2Use a macro or a Visual Basic for Applications procedure to remove a filter or sort. In the following example, the filter and sort are removed during the Current event of the form.
Note that if you use this event procedure to remove a filter, the only way
to activate the filter again is to re-create it. To re-create the filter, on the Records menu, point to Filter, and then click the appropriate command.
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information, search Microsoft Access Help for "Filter property," "FilterOn property," "OrderBy property," and "OrderByOn property." Additional query words: empty
Keywords : kbdta FmsProp |
Last Reviewed: July 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |