ACC: Data Not Sorted in Index Field Order (114081)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q114081 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you use an index on a table without a primary index, the table
does not sort according to the order of the fields in the index.
CAUSE
Opening a table in Datasheet view is, internally, the same as opening a
recordset. If there is no primary index on the table, Microsoft Access uses
any field with a unique index to sort the recordset. If none or more than
one of the fields has a unique index, Microsoft Access chooses one at
random. The order of the indexes shown in the Index window has no bearing
on which index is used to sort the recordset.
RESOLUTION
To sort a recordset on a particular field, either make that field the
primary index for the table (by setting its PrimaryIndex property to Yes),
or use a query to sort the data.
STATUS
This behavior is by design.
REFERENCES
For more information about Indexes, search the Help Index for "indexes,
creating," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbprb KB114081 |
---|
|