ACC1x: Primary Keys Not Used to Order Data in Combo/List Boxes

Last reviewed: May 27, 1997
Article ID: Q90878
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

If a table has a primary key and you use the table in a RowSource property in a list box or combo box, you will see the data in insertion order, not primary key order.

RESOLUTION

For historical reasons of the database, the order of insertion may have importance. To view the table's contents in primary key order, design a query that sorts on the primary key. Use the query as the RowSource property for the list box or combo box.

STATUS

This behavior no longer occurs in Microsoft Access version 2.0.

REFERENCES

Microsoft Access "User's Guide," version 1.0, pages 21-33 and 87-114


Additional query words: listbox combobox row
Keywords : FmsCmbo kbusage
Version : 1.0 1.10
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbworkaround


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: May 27, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.