G
Guest
Hello ....
I am running the following query:
SELECT a.Area, a.Day, Nz(b.DayTime,0) AS DayHours
FROM AllDates AS a LEFT JOIN DayTimeHours AS b ON (a.Area = b.Area) AND
(a.Day = b.Day)
ORDER BY a.Area, a.Day;
The majority of records are fine, but those records in AllDates where there
are no corresponding records in DayTimeHours getting a #Error instead of a 0
in the DayHours column. Is it the "a.Day=b.Day" that is causing problems, or
else might I have I gone wrong?
Thanks.
I am running the following query:
SELECT a.Area, a.Day, Nz(b.DayTime,0) AS DayHours
FROM AllDates AS a LEFT JOIN DayTimeHours AS b ON (a.Area = b.Area) AND
(a.Day = b.Day)
ORDER BY a.Area, a.Day;
The majority of records are fine, but those records in AllDates where there
are no corresponding records in DayTimeHours getting a #Error instead of a 0
in the DayHours column. Is it the "a.Day=b.Day" that is causing problems, or
else might I have I gone wrong?
Thanks.