Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting indexes

Status
Not open for further replies.

scottshiv

MIS
Sep 13, 2002
47
US
If you have multiple indexes, how do you select which index you want to be the current index or no index at all and have the database reflect that order?
 
The records are presented naturally in primary key order.
If there is no primary key, the first unique index is used.
If you want any other sequence you can sort the datasheet using the toolbar buttons or use advanced filter/sort from themenu or create a query.
 
have the database reflect that order
A relational database has NO order.
To retrieve records in a predefined sequence you have to write a query with an explicit ORDER BY clause.
This query may be optimized if the sort fields are properly indexed.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top