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 / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Table relationships

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert_DubYa - 23 Jan 2008 00:13 GMT
I've created a table that has two fields that together they make my primary
key.  I am trying to create a relationship between two tables (Enforcing
Referential Integrity).  When the enforce referential integrity button is
clicked i get a message that says "No Unique index found for the refrenced
field of the primary table".  My two fields together do create a unique
"key".  Any clue on what I may be doing wrong?
Allen Browne - 23 Jan 2008 14:41 GMT
In the relationship window, when you drag the field from one table onto the
other, Access pops up the Create Relationship dialog. On the first line of
the dialog, it fills in the first field for you, but you need to type in the
2nd field (and the matching field in the other table) into the 2nd row of
the dialog.

If that is not the issue, make sure the direction of your relation is
correct. That is, make sure the Primary table (as shown in the Create
Relationship dialog) is the one that has the 2-field primary key.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I've created a table that has two fields that together they make my
> primary
[quoted text clipped - 3 lines]
> field of the primary table".  My two fields together do create a unique
> "key".  Any clue on what I may be doing wrong?
 
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



©2009 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.