473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 1651
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********************@verizon.netwrote in message
news:bnRQh.8413$P84.4209@trnddc07...
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
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
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...
0
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:...
2
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...
5
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...
7
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...
45
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...
13
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.