Solved

Referential Integrity - Why can't I make it happen

Posted on 2014-02-16
3
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 37

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

710 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