I have combined 4 queries to make this one query. Some of
the fields are blank because they is no information for
some of the dates. How can I get zero's to show up in these
blank fields?
the fields are blank because they is no information for
some of the dates. How can I get zero's to show up in these
blank fields?
Code:
SELECT
LeaksDateQry.DateField,
[LeaksWorkUnitsDayPct-1-3TCombine].Truck,
[LeaksWorkUnitsDayPct-1-3TCombine].[WU Totals],
[LeaksWorkUnitsDayPct-1-3TCombine].[Leak Totals],
[LeaksWorkUnitsDayPct-1-3TCombine].Percent,
[LeaksWorkUnitsDayPct-4-5TCombine].Truck,
[LeaksWorkUnitsDayPct-4-5TCombine].[WU Totals],
[LeaksWorkUnitsDayPct-4-5TCombine].[Leak Totals],
[LeaksWorkUnitsDayPct-4-5TCombine].Percent,
[LeaksWorkUnitsDayPct-6-9TCombine].Truck,
[LeaksWorkUnitsDayPct-6-9TCombine].[WU Totals],
[LeaksWorkUnitsDayPct-6-9TCombine].[Leak Totals],
[LeaksWorkUnitsDayPct-6-9TCombine].Percent
FROM
LeaksDateQry
LEFT JOIN
(([LeaksWorkUnitsDayPct-1-3TCombine]
LEFT JOIN
[LeaksWorkUnitsDayPct-4-5TCombine] ON [LeaksWorkUnitsDayPct-1-3TCombine].TodaysDate = [LeaksWorkUnitsDayPct-4-5TCombine].TodaysDate)
LEFT JOIN
[LeaksWorkUnitsDayPct-6-9TCombine] ON [LeaksWorkUnitsDayPct-4-5TCombine].TodaysDate = [LeaksWorkUnitsDayPct-6-9TCombine].TodaysDate) ON LeaksDateQry.DateField = [LeaksWorkUnitsDayPct-1-3TCombine].TodaysDate;