Solved

Referential Integrity - Why can't I make it happen

Posted on 2014-02-16
3
291 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 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