R
ryan_eng
Hi all, I'll try and explain this as best I can to make it easy on you. My
database is for keeping track of documents, drawings and action items all
relating to tasks and employees.
Tables:
1. Resources - Res_ID (pk), Res_fname, Res_lname (the employees table)
2. Drawings - dwg_ID (pk), Resource_ID, Task_ID and various other fields
related to the drawing not affecting relationships.
3. Documents - doc_ID (pk), Resource_ID, Task_ID and various other fields...
4. Actions - action_ID (pk), Task_ID and other fields. This table is linked
to the Resource table through another table with only Resource_ID and
Action_ID in it to work with the many-to-many relationship.
5. Tasks - Task_ID (pk) and other fields....This table is linked to the
resource table in the same fashion as the actions table is. This is where my
problem lies.
Since employees are assigned to the action items, I used a subform in the
action item form for enterring the multiple employees and storing that data
in the linking table, no problem. For the Tasks - Resource link, I will not
be directly assigning employees to the tasks. The relationship is dictated by
what drawings, documents and action items the employees are working on (thus
the Task_ID field showing up in all of those tables). SO, for the Task form,
I simply want to display what employees are working on the Task in question.
The problem is that because I am not directly enterring data into the linking
table, there is nothing to display.
So far I have been able to set up 3 queries that list:
1. Employee, Doc_ID, Task_ID
2. Employee, Dwg_ID, Task_ID
3. Employee, Action_ID, Task_ID
I think this is one step closer to displaying the right data, but the
linking table will still be empty, which I guess implies that it is useless.
This is where I am stuck. How do I put together a 4th query that lists the
task ID and the various employees working on it? There will be duplicates
since one employee can be working on multiple documents / drawings / action
items and I don't want them to show.
I hope that is enough info, please let me know if anything else is in
question.
Thanks
RYAN
database is for keeping track of documents, drawings and action items all
relating to tasks and employees.
Tables:
1. Resources - Res_ID (pk), Res_fname, Res_lname (the employees table)
2. Drawings - dwg_ID (pk), Resource_ID, Task_ID and various other fields
related to the drawing not affecting relationships.
3. Documents - doc_ID (pk), Resource_ID, Task_ID and various other fields...
4. Actions - action_ID (pk), Task_ID and other fields. This table is linked
to the Resource table through another table with only Resource_ID and
Action_ID in it to work with the many-to-many relationship.
5. Tasks - Task_ID (pk) and other fields....This table is linked to the
resource table in the same fashion as the actions table is. This is where my
problem lies.
Since employees are assigned to the action items, I used a subform in the
action item form for enterring the multiple employees and storing that data
in the linking table, no problem. For the Tasks - Resource link, I will not
be directly assigning employees to the tasks. The relationship is dictated by
what drawings, documents and action items the employees are working on (thus
the Task_ID field showing up in all of those tables). SO, for the Task form,
I simply want to display what employees are working on the Task in question.
The problem is that because I am not directly enterring data into the linking
table, there is nothing to display.
So far I have been able to set up 3 queries that list:
1. Employee, Doc_ID, Task_ID
2. Employee, Dwg_ID, Task_ID
3. Employee, Action_ID, Task_ID
I think this is one step closer to displaying the right data, but the
linking table will still be empty, which I guess implies that it is useless.
This is where I am stuck. How do I put together a 4th query that lists the
task ID and the various employees working on it? There will be duplicates
since one employee can be working on multiple documents / drawings / action
items and I don't want them to show.
I hope that is enough info, please let me know if anything else is in
question.
Thanks
RYAN