Solved

Relationships

Posted on 2015-01-28
6
79 Views
Last Modified: 2015-01-28
Hello experts, I have a checklist for each agreement.  There are 5 agreements.   Shouldn't I make one table for tblChecklist that contains ALL records and have a combo box for the selection of which agreement the checklist belongs to?  

Someone posed to me separate tables and I don't think I can do this because I don't see how.  If I wanted to develop a query for ALL checklist records I would have to somehow relate them in the query builder window (ie define the relationship).    At least I think.  If not there would be duplicates.

How would an expert do this?  One table or separate?  As I mentioned the data is similar in that each is a checklist item but I have 5 agreements.  The only real difference is one item is a checklist item in agreement 1 and another might be tom agreement 2.  Etc etc.

Thank you
0
Comment
Question by:pdvsa
[X]
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
6 Comments
 
LVL 7

Expert Comment

by:Robert Sherman
ID: 40575098
Could you elaborate a bit on what you mean by "checklist" and "agreement".  It's hard to follow what quantity of each you have.   Perhaps provide a few fake/sample records to demonstrate.
0
 
LVL 85
ID: 40575101
Not much to go on, but:

What does a Checklist contain? Are these items which a user would check off, like "Completed Initial Inquiry", "Perform Field Visit", etc?

Can an Agreement be associated with more than one Checklist?

Can a Checklist be associated with more than one Agreement?
0
 
LVL 37

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40575257
Are you saying that you have 5 agreement tables?  If so, you need 5 checklist tables.

In reality though you should probably have one agreement table and onechecklist table.  Then you need a table that is a junction table so you can store the answer to the checklist for a specific agreement.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40575570
Like the other have stated, ...we need more info.
Is there, ... and wil there always be, only 5 agreements?
Is the "Checklist" one entiy?, ...or is a checkilst a set of enties (1 agreement with one checklist of multiple items)
...etc
Can you provide a detailed explanation of Agreements and Checklists, using a real world scenario?
But to me, ...it seems like a Many-To-Many...
Something like this roughly...?

tblAgreements
aID
aDate
...

tblChecklists
cID
cDate
...

tblChecklistItems (Junction Table)
ciID
aID
cID
...

JeffCoachman
0
 

Author Comment

by:pdvsa
ID: 40575758
Hello and thanks for the responses.

Answer:  I do not have the agreements in the DB.  I will though.

The junction table is the solution and it makes sense to me.

Thank you
0
 

Author Closing Comment

by:pdvsa
ID: 40575760
Thank you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

728 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