S
Sandy
Hi
I have a cross tab query that I am trying to use to
produce a report as below
2003 2004
Company D A M D A M
----------------------------------------
Bakers Ltd 5 11 2 3 15 0
Abbots Ltd 1 5 3 16 2 0
etc.
My sql looks like this:
TRANSFORM Sum(qryRptBudgetSpan.Amount) AS [The Value]
SELECT qryRptBudgetSpan.AuthName, Sum
(qryRptBudgetSpan.Amount) AS [Total Of Amount]
FROM qryRptBudgetSpan
GROUP BY qryRptBudgetSpan.AuthName
PIVOT [Year] & [type];
My current sql produces results that are close to what I
want however, if one of the categories is 0 or null (as in
my last column in the report displayed above), I still
want the query to display this column. At the moment, null
fields are being ommitted completely and the category they
are in does not display.
Any suggestions on how to fix this would be greatly
appreciated.
Sandy
I have a cross tab query that I am trying to use to
produce a report as below
2003 2004
Company D A M D A M
----------------------------------------
Bakers Ltd 5 11 2 3 15 0
Abbots Ltd 1 5 3 16 2 0
etc.
My sql looks like this:
TRANSFORM Sum(qryRptBudgetSpan.Amount) AS [The Value]
SELECT qryRptBudgetSpan.AuthName, Sum
(qryRptBudgetSpan.Amount) AS [Total Of Amount]
FROM qryRptBudgetSpan
GROUP BY qryRptBudgetSpan.AuthName
PIVOT [Year] & [type];
My current sql produces results that are close to what I
want however, if one of the categories is 0 or null (as in
my last column in the report displayed above), I still
want the query to display this column. At the moment, null
fields are being ommitted completely and the category they
are in does not display.
Any suggestions on how to fix this would be greatly
appreciated.
Sandy