MS Access: Indexes on a table in Access 2007
Also learn about indexes on a table in Access 2003/XP/2000/97.
TECH on the Net |
| HomePrivacy PolicyFeedbackLink to usSite Map |
Microsoft Database UNIX Other Top 10 Pages ADVERTISEMENT |
MS Access: Indexes on a table in Access 2007Also learn about indexes on a table in Access 2003/XP/2000/97. Question: In the Access 2007 Help, the specifications for a table says that the maximum number of indexes in a table is 32, and the maximum number of fields in an index is 10. When saving my Orders table, I got the following error 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." (See picture)
I clicked OK. Then I got another error message: "Errors were encountered during the save operation. Indexes were not added or changed." (See picture)
What is an example of an index? Answer: Each field on a table has a property called Indexed.
This property can be set to one of three values:
There can not be more than 32 fields in your table with the Indexed property of either "Yes (Duplicates OK)" or "Yes (No Duplicates)". In general, you would leave the Indexed property to "No", except if you are having performance issues retrieving values from your table. Then you may decide to create an index in your table. Please note that when you set your primary key on your table, Access will automatically set the Indexed property on those fields to "Yes (Duplicates OK)". |