T
Tony
Hi Group,
I am stumped with one and need help.
I have designed a Union query (SQL copied below) to enable
me to produce stats from the major tables in my DB. To
get it to work properly I have to put a test record
(blank) into certain tables for it to work correctly. How
can I get it to work properly if no records exist in some
tables, which is currently the case.
All help appreciated
Tony
'My SQL ----------------------------
SELECT qryTotalICT.Measure, qryTotalICT.[Total
Applications], qryTotalICT.[Total Amount]
FROM qryTotalICT;
UNION ALL SELECT qryTotal17A.Measure, qryTotal17A.[Total
Applications], qryTotal17A.[Total Amount]
FROM qryTotal17A;
UNION ALL SELECT qryTotal19.Measure, qryTotal19.[Total
Applications], qryTotal19.[Total Amount]
FROM qryTotal19;
UNION ALL SELECT qryTotal56B.Measure, qryTotal56B.[Total
Applications], qryTotal56B.[Total Amount]
FROM qryTotal56B;
UNION ALL SELECT qryTotalFocusFarm.Measure,
qryTotalFocusFarm.[Total Applications], qryTotalFocusFarm.
[Total Amount]
FROM qryTotalFocusFarm;
UNION ALL SELECT qryTotalGroup.Measure, qryTotalGroup.
[Total Applications], qryTotalGroup.[Total Amount]
FROM qryTotalGroup;
I am stumped with one and need help.
I have designed a Union query (SQL copied below) to enable
me to produce stats from the major tables in my DB. To
get it to work properly I have to put a test record
(blank) into certain tables for it to work correctly. How
can I get it to work properly if no records exist in some
tables, which is currently the case.
All help appreciated
Tony
'My SQL ----------------------------
SELECT qryTotalICT.Measure, qryTotalICT.[Total
Applications], qryTotalICT.[Total Amount]
FROM qryTotalICT;
UNION ALL SELECT qryTotal17A.Measure, qryTotal17A.[Total
Applications], qryTotal17A.[Total Amount]
FROM qryTotal17A;
UNION ALL SELECT qryTotal19.Measure, qryTotal19.[Total
Applications], qryTotal19.[Total Amount]
FROM qryTotal19;
UNION ALL SELECT qryTotal56B.Measure, qryTotal56B.[Total
Applications], qryTotal56B.[Total Amount]
FROM qryTotal56B;
UNION ALL SELECT qryTotalFocusFarm.Measure,
qryTotalFocusFarm.[Total Applications], qryTotalFocusFarm.
[Total Amount]
FROM qryTotalFocusFarm;
UNION ALL SELECT qryTotalGroup.Measure, qryTotalGroup.
[Total Applications], qryTotalGroup.[Total Amount]
FROM qryTotalGroup;