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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Indexes

Status
Not open for further replies.

elhamalireza

Technical User
Dec 4, 2007
3
0
0
US
HI every one:
What does this message stand for when attempting to make a One-To-Many relation between two fields of two separate tables.
"No unqiue Index found or..."
tnx very much
 
It means that it cannot tell what side is the ONE side. You need to make the ID field from the one side unique by setting it as a primary key. In table design, click on the ID field and click the primary key button (looks like a key.)

Dawn

 
Hey dawn:
Ofcourse, I had set the Primary keys for both side but...!
 
Ok, the PK in one table needs to be a FK in the many table. The many table needs its OWN PK and that's NOT the one you link to in the relationship table:
[tt]

ManyTable
OneTable PK
PK<---------Relationship-------->OneTablePK
Other Field OtherField [/tt]

Leslie

In an open world there's no need for windows and gates
 
If you have data in that field, it has duplicates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top