Solved

Relationships

Posted on 2015-01-28
6
73 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
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 84
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 34

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now