I have three tables, all linked.
Table 1 "job" has an autonumber ID field.
Table 2 "tasks" has a [job] field that is linked to [job:ID]
Table 3 "staff" has a [job] field that also links to [job:ID]
The purpose is to track multiple tasks and multiple staff who are working on a single job. There can be a random number of tasks per JOB, and a random number of staff per [ID] - so I have separate TASK and STAFF tables but they are linked to [ID]. The tasks and the staff are not linked. It all works great when entering and tracking data.
But now I need a report that lists all jobs, and also displays all tasks and staff that worked on that job.
Job#.....Tasks. .....Staff
-----------------------------------------------
13.........task 7......name9
14.........task 2......name3
............... .............na me5
15.........task 1.......name2
.............ta sk2.......name3
.............ta sk3
(dots added since spaces do not work here)
The problem I have is that even with grouping and playing with the "hide duplicates" option, I can't duplicate the above example. It either multiples the staff names when there are more than one task, or it multiplies the tasks when there are more than one staff!
So all I am trying to do is simply show all jobs, with lists of all tasks and all staff assigned to that job - with no duplicates.
Any help would be appreciated!
Peter
Table 1 "job" has an autonumber ID field.
Table 2 "tasks" has a [job] field that is linked to [job:ID]
Table 3 "staff" has a [job] field that also links to [job:ID]
The purpose is to track multiple tasks and multiple staff who are working on a single job. There can be a random number of tasks per JOB, and a random number of staff per [ID] - so I have separate TASK and STAFF tables but they are linked to [ID]. The tasks and the staff are not linked. It all works great when entering and tracking data.
But now I need a report that lists all jobs, and also displays all tasks and staff that worked on that job.
Job#.....Tasks. .....Staff
-----------------------------------------------
13.........task 7......name9
14.........task 2......name3
............... .............na me5
15.........task 1.......name2
.............ta sk2.......name3
.............ta sk3
(dots added since spaces do not work here)
The problem I have is that even with grouping and playing with the "hide duplicates" option, I can't duplicate the above example. It either multiples the staff names when there are more than one task, or it multiplies the tasks when there are more than one staff!
So all I am trying to do is simply show all jobs, with lists of all tasks and all staff assigned to that job - with no duplicates.
Any help would be appreciated!
Peter
Comment