G
Guest
If I create a primary key for a table, in vba I could use the seek command
and it speeds up record search. This I am aware of.
But what is the purpose of creating an index that is not "primary-key"? If I
am not mistaken, I couldn't use the seek command.
The only use I see is: in vba, open recordset, set index for the recordset,
then I could loop through the record in the recordset and it gives out
records in decending/asc order of key.
Wouldn't it have the same result if I create a recordset using a query
statement like: select ... from ... order by fldname asc. For my case the
table of interest has normaly a few records (never 100's).
I might overlook other uses of indexes. Please point out anything I miss.
Thanks.
and it speeds up record search. This I am aware of.
But what is the purpose of creating an index that is not "primary-key"? If I
am not mistaken, I couldn't use the seek command.
The only use I see is: in vba, open recordset, set index for the recordset,
then I could loop through the record in the recordset and it gives out
records in decending/asc order of key.
Wouldn't it have the same result if I create a recordset using a query
statement like: select ... from ... order by fldname asc. For my case the
table of interest has normaly a few records (never 100's).
I might overlook other uses of indexes. Please point out anything I miss.
Thanks.