473,666 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Relationships and where to build them?

Ron
Hi All,

I have relationships on a database built in the back end, but I'm wondering
if that's where they should be. Can they be built in the front end but
apply to all the back end tables? Can someone advise?

Here's the scenario. User has a choice upon first entry of the program to
go into one of 10 separate databases, all with the same tables but with
different data stored in each... let's say "office". They go into "Office
1" and they use/alter/report on, etc the data for that office. When done
with that, go to the menu of offices, select another and do work in that
office, etc. 22 tables in each "office".

Within each database I have a table for zip codes, cities and states. The
user selects the zip code and it pops in the city, state on the form (only
storing zipID in the table). The user, upon finding a new zip code,
however, would need to enter it and save it into the zipcode table in each
of the different databases if they want to access it within the different
databases. Cumbersome to say the least. And certainly uncool.

It'd probably be better, to have the zipcode table in another database and
just link it into the tables when linking the others. But then, how do I
enforce referential integrity? I can't do the relationships to the main
back end tables since the zipcode table will be in another database. Right?
Do I link it into my back end database, have the relationships there, and
then link into my front end?

Is my question clear? ::smile:: (heck, I'm confused by it!!!)

Because of ownership of the "unique" tables within each database, I need to
keep the databases separate like this, but certainly that wouldn't apply to
the zipcode table, nor about 3 other tables that COULD be set up like this
if I can figure out how to do it.

TIA
ron
Apr 4 '07 #1
1 1661
Relationships are on tables, so they must be on the back-end The front-end
can only put relationships on local tables.

It may look like those linked tables have a relationship on the front-end,
but you'll notice that you cannot enforce referential integrity, so all you
are really doing is defining joins for queries.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Ron" <ro************ ********@verizo n.netwrote in message
news:bnRQh.8413 $P84.4209@trndd c07...
Hi All,

I have relationships on a database built in the back end, but I'm
wondering if that's where they should be. Can they be built in the front
end but apply to all the back end tables? Can someone advise?

Here's the scenario. User has a choice upon first entry of the program to
go into one of 10 separate databases, all with the same tables but with
different data stored in each... let's say "office". They go into "Office
1" and they use/alter/report on, etc the data for that office. When done
with that, go to the menu of offices, select another and do work in that
office, etc. 22 tables in each "office".

Within each database I have a table for zip codes, cities and states. The
user selects the zip code and it pops in the city, state on the form (only
storing zipID in the table). The user, upon finding a new zip code,
however, would need to enter it and save it into the zipcode table in each
of the different databases if they want to access it within the different
databases. Cumbersome to say the least. And certainly uncool.

It'd probably be better, to have the zipcode table in another database and
just link it into the tables when linking the others. But then, how do I
enforce referential integrity? I can't do the relationships to the main
back end tables since the zipcode table will be in another database.
Right? Do I link it into my back end database, have the relationships
there, and then link into my front end?

Is my question clear? ::smile:: (heck, I'm confused by it!!!)

Because of ownership of the "unique" tables within each database, I need
to keep the databases separate like this, but certainly that wouldn't
apply to the zipcode table, nor about 3 other tables that COULD be set up
like this if I can figure out how to do it.

TIA
ron

Apr 4 '07 #2

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

Similar topics

7
12318
by: Jeff | last post by:
When you connect to an Oracle database with Access and ADO, is there a way to get information on the Oracle table relationships? Jeff
20
3014
by: Ed | last post by:
I am running Access 2002 and just ran the built in Access wizard for splitting a database into a back end (with tables) and front end (with queries, forms, modules, etc.). After running the wizard, I opened the table relationship view and noticed that all the relationships are missing. Is this supposed to happen? If so, why? I've noticed that queries are behaving strangely now, seemingly because the relationships are not established....
0
1481
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with: 1.) I'm trying to create a many to many relationship, and I get the following Error when I try to enforce referential integrity.
2
4137
by: Max | last post by:
Hi. I really hope someone can help me. Going slowly insane with this problem. I have a two Access 2000 databases. One is the backend containing tables and some admin queries. The other is the front end with forms / queries and links to the tables in the back end. From the Relationships window I selected File / Print Relationships. The resulting report shows relationships that are not displayed in the relationships window. Some of...
5
4696
by: Mike Turco | last post by:
What is the difference between creating relationships in the front-end vs. the back-end database? I was trying to create a relationship in a database front-end and noticed that I could not check the referential integrity box. What gives? Continuing on with that line of thinking, I understand what do the relationships do for you in a database, but what do they do physically to the tables? Thanks,
7
2121
by: davegb | last post by:
I'm totally new to relational database design. My boss has asked me to create a database of information on the employees in our group. Seemed to me like a simple application to learn the ropes. A couple of things are confusing me. The first is "Relationships" and "Joins". Are they different names for the same thing? If not, what is the difference? I have a copy of the Access 2000 Bible, and it says, "When you create a relationship between...
45
3392
by: salad | last post by:
I'm curious about your opinion on setting relationships. When I designed my first app in Access I'd go to Tools/Relationships and set the relationships. Over time I'd go into the window and see relationship spaghetti....tables/queries all overthe place with lots of relationship lines between here and there. After that first app I didn't do relationships. If I had a query, I defined the relationship. Many of the times when I create a...
13
2061
by: ARC | last post by:
Hello all, Prior to going live with my app, I have questions on relationships theory. My prior app was done in Access 97, and I did NOT use relationships at all. I have 65 tables in my back-end database, and with Access 97, if you added relationships, it would add multiple copies of the same relationships over and over, so I decided not to use any relationships at all. Additionally, when I needed to add or remove fields via code, it...
5
2313
by: LittleCake | last post by:
Hi All, I have a multidimensional array where each sub-array contains just two entries, which indicates a relationship between those two entries. for example the first sub-array: =Array ( =30 =31 )
0
8781
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
8551
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
8640
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...
0
5664
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
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.