Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / April 2005

Tip: Looking for answers? Try searching our database.

Help with a multiple field index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SteveH - 01 Apr 2005 14:26 GMT
I am building a data base of equipment across several manufacturing
facilities. There are several pieces of equipment in each facility. I have a
table that contains facility name and equipment ID among other fields. More
than one facility may use the same ID for a piece of equipment but the
combination of facility and ID are unique. I am trying to assign a multiple
field primary key to this table but when I try to save I get a pretty
generic error message that lists a number of probable causes. The only cause
that seems to fit is that the index need to be set to accept duplicate
entries. When I try to set unique to no in the index properties I get
another error message that says I can't set the unique property  to on a
primary key. I am confused and bewildered by this. Can any one help me on
this apparently simple task?

TIA

Steve H
Jeff Boyce - 01 Apr 2005 14:40 GMT
Steve

It sounds like there's a chance your "unique" combination is, in fact, not.
Have you run a query (Find duplicates) against the data to confirm that
there are no matches on Facility + EquipmentID  By the way, if there is NO
chance that two facilities would have the same name, keep on with your
approach.  If thee is ANY chance two could use the same name, create a
Facilities table and assign a unique ID to each.  Your table in question
then lists ID pairs for Facility and Equipment.

Signature

Good luck

Jeff Boyce
<Access MVP>

> I am building a data base of equipment across several manufacturing
> facilities. There are several pieces of equipment in each facility. I have a
[quoted text clipped - 12 lines]
>
> Steve H
SteveH - 01 Apr 2005 15:22 GMT
Jeff,

You were absolutely right. In spite of by best efforts to check the
integrity of the data I found not only one but two typos that resulted in
duplicates. Thanks for your insight.

Steve

> Steve
>
[quoted text clipped - 28 lines]
>>
>> Steve H
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.