Here's some more info about my problem.
I've attached an image of the table.
I am trying to first of all filter out and separate the employees on a job and each date that they are on. Then I am trying to put them together on one line.
I first of all list the Distinct employees for a job and put their names in textboxes on the form. Then I query for each employee in each textbox.
I'm looking for a better more efficient way to achieve this:
qryEmployeeHours1
SELECT tblLabour.*
FROM tblLabour
WHERE (((tblLabour.EmployeeKey)=[forms]![frmAssyHours]![Employee1]));
qryEmployeeHours2
SELECT tblLabour.*
FROM tblLabour
WHERE (((tblLabour.EmployeeKey)=[forms]![frmAssyHours]![Employee2]));
qryEmployeeHoursTotal
SELECT DISTINCT qryEmployeeHoursDate.WeekEnding, qryEmployeeHoursDate.WeekNo, qryEmployeeHoursDate.SISkey, qryEmployeeHours1.Employee, IIf(IsNull([qryEmployeeHours1].[Time]),0,[qryEmployeeHours1].[Time]) AS T1, IIf(IsNull([qryEmployeeHours1].[TimeHalf]),0,[qryEmployeeHours1].[TimeHalf]) AS TH1, qryEmployeeHours2.Employee, IIf(IsNull([qryEmployeeHours2].[Time]),0,[qryEmployeeHours2].[Time]) AS T2, IIf(IsNull([qryEmployeeHours2].[TimeHalf]),0,[qryEmployeeHours2].[TimeHalf]) AS TH2
FROM (qryEmployeeHoursDate LEFT JOIN qryEmployeeHours1 ON (qryEmployeeHoursDate.WeekEnding = qryEmployeeHours1.WeekEnding) AND (qryEmployeeHoursDate.SISkey = qryEmployeeHours1.SISkey)) LEFT JOIN qryEmployeeHours2 ON (qryEmployeeHoursDate.WeekEnding = qryEmployeeHours2.WeekEnding) AND (qryEmployeeHoursDate.SISkey = qryEmployeeHours2.SISkey);