XL5: Microsoft Query Records Not Sorted Correctly

Last reviewed: September 12, 1996
Article ID: Q110604
The information in this article applies to:
  • Microsoft Query, version 1.0
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

In Microsoft Query, using an SQL statement to create a query may cause problems when you attempt to sort the data. If you use the Microsoft Query sort buttons (A-Z or Z-A) or choose Sort from the Records menu, the selected column may not be sorted if it was defined with an ORDER BY statement in the SQL statement.

WORKAROUND

Because this behavior is by design, the only way to sort the records is to perform the sort on a column that is not created by an ORDER BY statement in the SQL statement.

STATUS

This sorting behavior is by design of Microsoft Query.


KBCategory: kbusage
KBSubcategory: xlquery

Additional reference words: 1.00 5.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.