A very good question! I have A07 at home but really haven't looked at
indexing yet. I'm going to assume (yea I know) that it's similar to A03.
Every table should have a primary key. Hopefully it is only one field.
Access automatically creates an index for primary key fields.
If your queries join two or more tables, go to the Relationships window and
see if a relationship is defined between the tables involved. Hopefully they
are and Referential Integrity is enables as this will also create an index
with the Foreign Key in the other table. If not, see if you can link the
tables and turn on RI. There's a very good chance that it can not. In that
case mark sure that the linked fields in both tables have indexes.
Also index any field that is part of the Where Clause or Order By.
As mentioned before Access will automatically create an index for Primary
Key fields. It will also create indexes for field with any of the following
in any part of the field names: ID; key; code; num. In fact Access has no
problem creating two or more indexes on the same field. For example if your
Primary Key is named PK_ID, you will have two indexes for the same field
which is wasteful. Actually I think that this behavior might have been fixed
in A07.
Warning: Indexes aren't free. They also take up space and can slow down
inserts and updates. Don't go overboard on the indexing. If a table has fewer
than 1,000 records, chances are that an index won't do any good as Access
will just do a full table scan instead. If you really want to get into
indexing, google "access showplan". Once set up it shows how Access queries
are executed and what indexes are used.
http://builder.com.com/5100-6388-5064388.html