Index - how to create/use an index in a quary

G

Guest

Hi,
I created a primary key when I created my table. I now want to create an
index on multiple fields. How do I do that and how do I use this new index
in a quary

Thank you.

Avaya
 
D

Douglas J. Steele

Assuming Access 2003 or earlier, to create a multi-field index, either click
on the Index icon on the button bar (it's a bunch of horizontal lines with a
lightening bolt to the right), or select Indexes from the View menu. Pick a
name for the index (it doesn't matter what you call it) and put that in the
first column of the first empty row. In the next column, put the name of the
first field you want in the index. The Sort order isn't critical either. On
the next row, leave the Index name column blank, and put the name of the
second field you want in the index in the second column, underneath the
field you've already added. Repeat until you're finished.

You don't have to do anything to use the index: Access will figure out the
best index to use, and you can't influence its decision.
 
G

Guest

Thank you Douglas.

Avaya

Douglas J. Steele said:
Assuming Access 2003 or earlier, to create a multi-field index, either click
on the Index icon on the button bar (it's a bunch of horizontal lines with a
lightening bolt to the right), or select Indexes from the View menu. Pick a
name for the index (it doesn't matter what you call it) and put that in the
first column of the first empty row. In the next column, put the name of the
first field you want in the index. The Sort order isn't critical either. On
the next row, leave the Index name column blank, and put the name of the
second field you want in the index in the second column, underneath the
field you've already added. Repeat until you're finished.

You don't have to do anything to use the index: Access will figure out the
best index to use, and you can't influence its decision.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top