Solved

Referential Integrity - Why can't I make it happen

Posted on 2014-02-16
3
294 Views
Last Modified: 2014-02-17
In relationships I have two table and want them to have referential integrity but the checkboxes are grayed out.  Why is this?
0
Comment
Question by:SteveL13
3 Comments
 
LVL 14

Accepted Solution

by:
Bill Ross earned 167 total points
ID: 39862745
Hi,

You must join on the Primary Key in one table to the same field datatype and length in the other table.  If the fields are different or if one of the fields is not the primary key then there cannot be an enforceable reference between the 2 tables.

Regards,

Bill
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 167 total points
ID: 39862973
In addition, the two tables must be within the same database container.  You can't enforce RI if their in two different MDB/ACCDB's.

Jim.
0
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 166 total points
ID: 39863442
Also, you need to create the relationship in the BE where the tables physically reside.  You cannot create relationships from the FE.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question