I am using the following Access query to return overtime data. I am getting only week numbers which contain overtime hours. If the week number overtime hours are null then the week number does not appear in the query results. I would like to see all the week numbers whether the overtime hours are null or contains data:
SELECT DISTINCTROW tbl_weekly_2011.ClockNumber, tbl_weekly_2011.WeekNumber, tbl_rate.Person, Sum(tbl_weekly_2011.Overtime) AS OT
FROM tbl_rate INNER JOIN tbl_weekly_2011 ON tbl_rate.ClockNumber = tbl_weekly_2011.ClockNumber
GROUP BY tbl_weekly_2011.ClockNumber, tbl_weekly_2011.WeekNumber, tbl_rate.Person
HAVING (((tbl_rate.Person)=[Forms]![frm_start]![person_name]));
Thank you for any and all assistance.
SELECT DISTINCTROW tbl_weekly_2011.ClockNumber, tbl_weekly_2011.WeekNumber, tbl_rate.Person, Sum(tbl_weekly_2011.Overtime) AS OT
FROM tbl_rate INNER JOIN tbl_weekly_2011 ON tbl_rate.ClockNumber = tbl_weekly_2011.ClockNumber
GROUP BY tbl_weekly_2011.ClockNumber, tbl_weekly_2011.WeekNumber, tbl_rate.Person
HAVING (((tbl_rate.Person)=[Forms]![frm_start]![person_name]));
Thank you for any and all assistance.