ACC95: FilterName Argument of OpenForm Macro Action Doesn't SortLast reviewed: May 14, 1997Article ID: Q154421 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When the FilterName argument of an OpenForm action is based on a query or an SQL SELECT Statement that includes the sorting of a field or fields in ascending or descending order, sorting will be ignored when the OpenForm action is executed.
CAUSEMicrosoft Access 7.0 does not automatically set the form's OrderByOn property to True when the FilterName argument of the OpenForm action uses a filter that is sorting by one or more fields.
RESOLUTIONTo work around this problem, follow these steps:
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 7.0. This problem no longer occurs in Microsoft Access 97.
MORE INFORMATIONIf the filter has criteria to limit the number of records to be viewed by the form, the form will, in fact, be limited to only those records which meet the criteria's condition; but all sorting, however, will be ignored.
Steps to Reproduce Problem
REFERENCESFor more information about the ApplyFilter action, search for "ApplyFilter Action" using the Microsoft Access 7.0 Help Index.
|
Additional query words: ORDER BY
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |