Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you enforce Referential Integrity on a liked table?

Status
Not open for further replies.

MariaL

Instructor
Jun 23, 2003
50
US
Good evening everyone. I have linked a table into my database from another access database. I related the table to the appropriate tables, but it would not let me enforce referential integrity on the relationship. The area is grey on the window. Is there another way to accomplish this task?
Thank you for your time and help.

 
No, there's no way to do this. The problem is that for every SQL update statement executed on the local table (which includes updates via forms, table and query datasheets, and VBA/DAO code), Jet would have to open the external database, check the integrity constraints, and then close the database again. (It can't leave the database open because that could interfere unnecessarily and pointlessly with other users' access to it. For example, what if you just left your local database open overnight without doing anything? If the external database were kept open, the network admins wouldn't be able to back it up.)

All that opening and closing takes a lot of time. The performance would be horrendous.


Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top