View Single Post
  #16  
Old March 31st, 2010, 09:55 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Don't understand the relationship between a combo box and a ta

The indexes you don't see are hidden and will not show up when you use the
indexes dialog. They are being created to manage the relationships being set
up by all those comboboxes used by the lookup fields.

You can detect them by using VBA code to step through the indexes collection
for the table.

This will give you the count of indexes for a particular table. Enter it into
the VA+BA immediate window.
Currentdb().TableDefs("NameOfTable").Indexes.Count

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

forest8 wrote:
When I check the indexes, there are only 2 indexes created:

One is the tables' primary key and the other is the Foreign Key.

I can't seem to see any other index.



"Jeff Boyce" wrote:

First, be aware that the general consensus among regular Access users is
that more than about 30 fields in a table is fairly unusual, and usually
indicates that the table/database needs a bit more normalizing.

Access adds indexes of it's own, "behind the curtain" so to speak. Have you
opened the table in design view, clicked on the Indexes button and inspected
what indices are showing?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"forest8" wrote in message
...
Hi there

Currently I am getting the following message:

"The operation failed. There are too many indexes on table 'Orders'.
Delete
some of the indexes on the table and try the operation again."

In my table, I am trying to change a text box into a multi=select combo
box.

There are 45 fields in my table of which 40 have this multi-select combo
box.

I don't understand where these indexes are being created.

I do have 1 primary key in my table.

Thank you


.