Solved

Referential integrity enforcement via linked table

Posted on 2004-04-02
3
406 Views
Last Modified: 2008-03-06
I am placing a relationship between "tblpaymentsreceived" and another table linked from another Access database that includes a joining reference field.

I reconciled both tables to ensure that data in the joining field was reflected in both tables and linked them.

A "One-to-Many" relationship was highlighted in the dialog box but I cannot check the "Enforce Referential Integrity" box.  I have tried inputting an incorrect reference number in "tblpaymentsreceived" and no error message appeared.

Can I not enforce this referential integrity rule because of the linked table?  If so, how can I discipline input (can I place a combo box in the "tblpaymentsreceived" field that only reflects reference numbers from the linked table)?

0
Comment
Question by:MidlandR
3 Comments
 
LVL 77

Expert Comment

by:peter57r
Comment Utility
Hello MidlandR,

Referential integrity must be enforced in the database where the tables are held (that is - the backend database)



Pete
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 400 total points
Comment Utility
no, you cannot apply REFERENTIAL integrity rules on LINKED tables.  The rules MUST be established on the Actual Physical tables, themselves.


As for using a Combobox based on the Linked table, to enforce the relationship in code, that is the proper solution fopr this problem.

AW
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility
As stated above, this isn't possible.

You basically have two options:
1) Move "tblpaymentsreceived" to the other database
2) "Force" the referential integrety from your application, however when the user(s) have access to the tables, this can fail :-)

Nic;o)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now