Access 2007 - relationship

Posted on 2011-02-17
Last Modified: 2012-05-11
I am at a loss in setting up the following design.
My OS is windows 7.
I have a main table called tblContacts, and one of the fields is called 'Responsible for'.

There is another table called tblResponsible4' which has only 2 fields, 1 is an ID and the other called Resp4.

One contact can be responsible for more than 1 item.  But  there is only 1 field on the main table called 'Responsible for' to capture the data which is entered via Form using a combo box.   Would I need to duplicate the record and then enter the new data for the 'Resp 4'
eg : Mr. A is responsible for 'Food' and 'Drinks'
or even more than 2 or just only 1 item.
Hope someone can send me a simple design of  how this is achieved. thank u.
Question by:jegajothy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 167 total points
ID: 34919657
you need to create a junction table

tblContacts          contactResp            tblResponsible4
ID            1 ------M   ContactID
                                RespID      M ------ ID

see this demo

Expert Comment

ID: 34920270
make relaen tion between the 2 tables in sort to give the person id to the items
ex: the ID 4 mr a to food and drinks

Author Comment

ID: 34921344
Can someone please take a look and fix the attached table.  It has only one record in the Committee table and in the main table 105.  I just cannot understand the logic or how to do it. thank u. email-database.accdb
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 333 total points
ID: 34962090
1. <I have a main table called tblContacts, and one of the fields is called 'Responsible for'.>
Not in the DB you posted...

2. Even so, the SeniorsClub table is missing a primary key...
Hence you cannot set up a true 1-->M

3. It is difficult to tell form the DB you posted, if the relationship needs to One to Many or many to many.
<One contact can be responsible for more than 1 item.>
...note that your sample does not contain an Items table either...
causing further confusion...

<I just cannot understand the logic or how to do it.>
Then please study up on relationships *before* building and relating your tables.

A typical One to many is like this:


In other words, One customer can have many Orders.

A typical Many to Many would be like this:



In this case one Class can have many Students *AND* one Student can have many Classes.

So again, it is not clear what your actual structure *should* be.

So study what we have all posted here, and post back with your revised Question.


LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 333 total points
ID: 34962208 a nutshell, the tables in the DB you posted (especially the SeniorsClub table) do not appear to be properly "Normalized".
So you may want to research this first: al

You also have issues with not having a Standardized naming convention for your tables or fields.: al



Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handle Apostrophes in SQL Parameter 16 68
Sharepoint list value updated via access or Excel 3 33
ISeries Remote Location Route entry 2 28
View SQL Count Records 3 32
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question