473,788 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can A Relationship Be Set Up Between Tables In Different MDB Files?

I am creating a database with a backend and frontend. The backend consists of a
Products table and many other tables. The products table in an .mdb file by
itself is over 2 meg. I thought about putting the products table in a file by
itself and all the other tables in another file. I anticipate there will be a
need for changes in the other tables and since communication is over the
internet, having the products table in a different file would make a smaller
file to email back and forth. I need to have referential integrity enforced
between the products table and other tables and I also need cascade update and
cascade delete. I linked the products table to the other backend file that
contained all the other tables. I then added the linked products table and the
other tables I needed to relate the products table to to the relationships
window. I then discovered I could create what seemed to be a relationship
between the linked products table and the other tables but could not enforce
referential integrity or set cascade delete or cascade update.

Is there a way to enforce referential integrity between tables in different .mdb
files and set up cascade delete and cascade update between the tables?

Thanks!

Heather

Nov 12 '05 #1
4 2474
Hi Heather

No sorry - this cannot be done.

However, you might consider not allowing deletes on your products table, and
perhaps adding an "Obsolete" field to mark those which have been removed
from stock. Surely you wouldn't want to cascade deletes anyway, as you
would then delete any related order/sales records when you remove a product
from your inventory. I can't see why it should be necessary to cascade
updates in a products table, as the primary key ought to be static.

Of course you would have live without enforced relational integrity.

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

"Heather" <ha******@csedu cationalsystems .org> wrote in message
news:FM******** **********@news read1.news.atl. earthlink.net.. .
I am creating a database with a backend and frontend. The backend consists of a Products table and many other tables. The products table in an .mdb file by itself is over 2 meg. I thought about putting the products table in a file by itself and all the other tables in another file. I anticipate there will be a need for changes in the other tables and since communication is over the
internet, having the products table in a different file would make a smaller file to email back and forth. I need to have referential integrity enforced between the products table and other tables and I also need cascade update and cascade delete. I linked the products table to the other backend file that
contained all the other tables. I then added the linked products table and the other tables I needed to relate the products table to to the relationships
window. I then discovered I could create what seemed to be a relationship
between the linked products table and the other tables but could not enforce referential integrity or set cascade delete or cascade update.

Is there a way to enforce referential integrity between tables in different .mdb files and set up cascade delete and cascade update between the tables?

Thanks!

Heather

Nov 12 '05 #2
"Heather" <ha******@csedu cationalsystems .org> wrote in message
news:FM******** **********@news read1.news.atl. earthlink.net.. .
Is there a way to enforce referential integrity between tables in different .mdb files and set up cascade delete and cascade update between the tables?


No, there isn't. You'll have to do it manually through code.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
Nov 12 '05 #3
Doug,

Could you give me an outline on how to do it through code.

Thanks!

Heather
"Douglas J. Steele" <NOSPAM_djsteel e@NOSPAM_canada .com> wrote in message
news:u$******** ******@TK2MSFTN GP10.phx.gbl...
"Heather" <ha******@csedu cationalsystems .org> wrote in message
news:FM******** **********@news read1.news.atl. earthlink.net.. .
Is there a way to enforce referential integrity between tables in

different .mdb
files and set up cascade delete and cascade update between the tables?


No, there isn't. You'll have to do it manually through code.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

Nov 12 '05 #4
What I meant was you'd have to write queries which would delete related
records from the second table when a record is deleted from the first. How
you do that depends on the specifics of the application.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

"Heather" <ha******@csedu cationalsystems .org> wrote in message
news:TN******** ***********@new sread1.news.atl .earthlink.net. ..
Doug,

Could you give me an outline on how to do it through code.

Thanks!

Heather
"Douglas J. Steele" <NOSPAM_djsteel e@NOSPAM_canada .com> wrote in message
news:u$******** ******@TK2MSFTN GP10.phx.gbl...
"Heather" <ha******@csedu cationalsystems .org> wrote in message
news:FM******** **********@news read1.news.atl. earthlink.net.. .
Is there a way to enforce referential integrity between tables in

different .mdb
files and set up cascade delete and cascade update between the tables?


No, there isn't. You'll have to do it manually through code.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)


Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6127
by: bitwxtadpl | last post by:
-First I add and relate the tables A and B. Create a new instance of TableA Add TableA to DataSetX Create a new instance of TableB Add TableB to DataSetX Create a relation between TableA and TableB At this point I can connect the DataSet to a DataGrid and everything works fine, I can browse the connected tables without any errors.
5
2396
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from Rfile.Rnumber to Rline.Rnumber. Originally I went in with the Relationships window, drew the line, and clicked the cascading updates and deletes. Everything was fine, for a couple of years. All of the sudden however, this relationship seems to delete...
64
5428
by: chuck gregory | last post by:
I'm working with the 2002 (10.6771.6839) SP3 Access program. I originally (earn while I learn) developed a 250-field table. To streamline it, I saved the table under six different names, then deleted from each of the six different sections of fields. This gave me six tables which included all the fields of the original elephant and allowed me to add in a few extra fields where needed. I then created new queries, using the six new tables....
6
4061
by: NicoleCartrette | last post by:
Going back to school is easier said than done.. This was posted to an older thread earlier but I don't think it got any attention. Your help is appreciated Professor requires we create a simple database and specified what are to be the primary keys and relationships etc. I have created the four tables and established the neccessary one to many and many to one relationships between primary keys in the tables with the exception of one...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.