Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexes in Access

Status
Not open for further replies.

stars

Instructor
Jan 30, 2001
67
US
In reading some information on Indexes in Access, I ran across some information that I'm skeptical and would appreciate some input on this.

I know Access sets an index on the primary key field automatically, but the information I was reading stated that Access would also set an index on other fields atomatically such as a "zipcode" field. In one of my Access classes, I had students set up a zipcode field. However, none of my students had an index set automatically for their zipcode field even though it contained a mask for such.

Comments?

 
Hi!

Tools | Options, Tables/Queries tab - there's an "AutoIndex on Import/Create" thingie. The "fragments" there, as beginning or ending characters of a field, would/should automaticly index the field (dupes allowed).

So if "code" is listet there, and "zipcode" is entered as a new field name, it should autoindex.

HTH Roy-Vidar
 
A major point about indexes not commonly pointed out:

It is knowing that while indexes undoubtedly speed up searching and sorting, they slow down insert, update and delete operations because the indexes have to be updated as well as the data. This is why it is only worthwhile indexing fields and combinations of fields that will be searched on or sorted within your access databases.

John
 
Thanks for the information, Roy. I went to the tables/queries under options and "ID,key,code and num" are listed under autoindex. Given that,zipcode should have automatically indexed with "code" in there but it didn't!

Any suggestions, or do I have to spell out "zipcode" in autoindex?

Regards,
Stars
 
Hi stars,

No, it should work with just "code" as it is - provided your field is called "zipcode". It does depend how the table is created though - it is an Access (not Jet) feature, so if you run some DDL it won't automatically create an index then, but if the field is added in table design mode you should be alright.

Enjoy,
Tony

------------------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading FAQ222-2244 before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top