Hi,
Bearing in mind that I am new to this game, understand very little
about SQL and don't work in IT, I was wondering if someone could give
me some friendly advice on how to design relationships and/or forms
for the following tables:
1) 'Students' - One record per student. Student can choose six
different universities, so as well as all of the other student
information, the table has six fields (called 'University 1',
University 2', etc)
2) 'Universities' - One record per university. One university can take
many different students
What I would like is that when I view a 'University' form, I can see
details of all students associated with that university and when I
view a 'Student' form, I can see details of all universities with
which that student is associated. From what I can gather, another
table to serve as a junction box is needed but when I made one, only
the information in the field 'University 1' was displayed from the
student table; the data in fields 'University 2', University 3', etc.
didn't appear. Other relationships and forms in the database (staff,
offices, agents,etc) seem to be working OK - just can't figure out
this multiple-field-same-value relationship stuff. I've had a look
around this group for something I can understand that might be
relevant but I can't seem to apply other advice to my situation. A
little knowledge is indeed a dangerous thing.
I realise that this is basic stuff and I apologise in advance for my
ignorance.
Thanks,
Ben 2 1400
OK, you have a table of students, a table of universities, and a junction
table of combinations of students and universities.
If you want to see all the universities for a student, you need a parent form
for student, and a subform based on the junction table, usually showinf the
associated univerities by way of combo boxes bound to the univertity id
column, but it could be done by joining to that table in a query.
To see all the students for a university, you turn that upside down. The
master form is bound to the univertities table, the subform is bound to the
junction, and the student data for each of these is shown with a combo box or
using a query join.
Note that the primary key of the junction table should be the combination of
the keys for the other 2 tables, so each combination of student and university
represents exactly one record in the junction table.
Does this help?
On 16 Jan 2004 21:56:48 -0800, be************* ***@hotmail.com (Bodger) wrote: Hi,
Bearing in mind that I am new to this game, understand very little about SQL and don't work in IT, I was wondering if someone could give me some friendly advice on how to design relationships and/or forms for the following tables:
1) 'Students' - One record per student. Student can choose six different universities, so as well as all of the other student information, the table has six fields (called 'University 1', University 2', etc)
2) 'Universities' - One record per university. One university can take many different students
What I would like is that when I view a 'University' form, I can see details of all students associated with that university and when I view a 'Student' form, I can see details of all universities with which that student is associated. From what I can gather, another table to serve as a junction box is needed but when I made one, only the information in the field 'University 1' was displayed from the student table; the data in fields 'University 2', University 3', etc. didn't appear. Other relationships and forms in the database (staff, offices, agents,etc) seem to be working OK - just can't figure out this multiple-field-same-value relationship stuff. I've had a look around this group for something I can understand that might be relevant but I can't seem to apply other advice to my situation. A little knowledge is indeed a dangerous thing.
I realise that this is basic stuff and I apologise in advance for my ignorance.
Thanks,
Ben
On Sat, 17 Jan 2004 06:20:00 GMT, Steve Jorgensen <no****@nospam. nospam>
wrote: OK, you have a table of students, a table of universities, and a junction table of combinations of students and universities.
If you want to see all the universities for a student, you need a parent form for student, and a subform based on the junction table, usually showinf the associated univerities by way of combo boxes bound to the univertity id column, but it could be done by joining to that table in a query.
(I seem to be having trouble with the "s" and "g" keys <g>). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chuck Van Den Corput |
last post by:
I have an application with one main table with a jillion attributes.
There are numerous other tables, but these are either children of the
main table or lookup tables.
I am finding that I am using up all my indices on the main table to
support the relationships with all the child and lookup tables.
My question is this: would anyone...
|
by: Megan |
last post by:
hello everybody,
i know this is a very long post, but i wanted to provide as much
detail as possible.
quick overview- i want to create a couple of many to many
relationships and am wondering how many relationships to create. i am
also trying to figure out what relationships to create.
|
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...
|
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...
|
by: Dixie |
last post by:
I need to delete some relationships in code. How do I know what the names
of those relationships are?
| |
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...
|
by: Jack B |
last post by:
I'm using Access 2002 to create a database for a small opera company that my
wife is involved in, and I'm more than a bit rusty because I haven't created
a new Access database since about 1999. So, I will probably have quite a
few questions as I go through this, and hopefully this group will help me
out.
I will be creating this database...
|
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...
|
by: netnewbie78 |
last post by:
Hello All,
I don't have a problem (but maybe I will after I explain). I have a
question with regards to something I saw in Access 2007. But first, a
little backstory:
I'm writing a very small stock database. For now, it will simply track
what products come in (Stocks bought by Project) and what products go
out (Stocks sold to by Project)...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |