Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need to setup tables with the following relationships

Posted on 2015-01-29
4
Medium Priority
?
131 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
[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
  • 3
4 Comments
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 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 93

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 93

Expert Comment

by:Patrick Matthews
ID: 40584441
Glad to help
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
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.

704 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