Microsoft KB Archive/92689
ACC1x: Queries Sort by Order of IN() Parameters
The information in this article applies to:
- Microsoft Access versions 1.0, 1.1
If you use the IN() operator in an unsorted query, the output will be grouped on the associated field. In addition, Microsoft Access will place the groups in the same order as the parameters are listed in the IN() operator.
Steps to Reproduce Behavior
- Create a table with Firstname and Lastname fields (data type "text"). Enter the data listed below:
- Create a query on this table. In the Criteria cell for Lastname, type:
The query will generate these records:
You can have the records appear in a different sequence by changing the order of the parameters in the IN() operator, or you can explicitly specify a SORT order.
Additional query words: sorting group in order by
Keywords : kbusage
Issue type : kbinfo
Last Reviewed: November 4, 2000