I am self taught in Access and have over the last couple of years built a database that I use daily.
I now want to carry out some maintenance and having looked at some of the original tables I created I wonder whether I am creating unnecessary indexes.
For example I have a table tblFertProduct the first entry is ProductIndex which is an autonumber, PK and is indexed(no duplicates).
The 2nd entry is productName which is a text data type and is also indexed(no duplicates).
The productName could be up to 50 characters long and includes spaces, hyphens and brackets but is unique.
Do I need both would I see any drop in performance by making ProductName the PK and deleting ProductIndex?
There are a number of queries that would use the PK as a join so am I asking for trouble by moving from an Autonumber to a text field?
My database is Access 2007, is 29,000KB and is used by a max of 3 users at any one time.
Thanks for any help and advice
Neil
I now want to carry out some maintenance and having looked at some of the original tables I created I wonder whether I am creating unnecessary indexes.
For example I have a table tblFertProduct the first entry is ProductIndex which is an autonumber, PK and is indexed(no duplicates).
The 2nd entry is productName which is a text data type and is also indexed(no duplicates).
The productName could be up to 50 characters long and includes spaces, hyphens and brackets but is unique.
Do I need both would I see any drop in performance by making ProductName the PK and deleting ProductIndex?
There are a number of queries that would use the PK as a join so am I asking for trouble by moving from an Autonumber to a text field?
My database is Access 2007, is 29,000KB and is used by a max of 3 users at any one time.
Thanks for any help and advice
Neil