Solved

Need to setup tables with the following relationships

Posted on 2015-01-29
4
120 Views
Last Modified: 2015-02-02
trying to setup tables with the following relationships to be later used in a form.
I need to create a form to track task for clients.
However, I would like to be able to add multiple individual task to one task.
can someone point me in the right direction?
0
Comment
Question by:VGuerra67
  • 3
4 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 40577967
I would go with something like this:


tblClients
-------------------------------------
ClientID (PK)
ClientName
<other attributes>

tblTaskHeader
-------------------------------------
TaskHeaderID (PK)
ClientID (FK)
TaskHeaderName

tblTaskDetail
-------------------------------------
TaskDetailID (PK)
TaskHeaderID (FK)
TaskDetailName
TaskDetailStartDate
TaskDetailEndDate
<other attributes>


The idea is that each "master task" gets one record in tblTaskHeader, and then each "master task" has one or more related records in tblTaskDetail.

If you are assigning employees to the detail-level tasks, then I would add the following tables:

tblEmployees
-------------------------------------
EmployeeID (PK)
EmployeeLName
EmployeeFName
<other attributes>

tblTaskDetailAssignments
-------------------------------------
TaskDetailAssignID (PK)
TaskDetailID (FK)
EmployeeID (FK)

This allows you to assign more than one employee to a detail-level task.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 40577972
For your forms, I would have a form for tblTaskHeader, and then have a related subform for tblTaskDetail.
0
 

Author Closing Comment

by:VGuerra67
ID: 40582696
Thank you very much for guiding me in the right direction.  Your information was exactly what i needed.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 40584441
Glad to help
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

809 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