A
Andre Adams
Why wouldn't the below query post the 2007 and 2008 Totals in a report? I
get all the other information but I do not get the totals. Can someone help?
SELECT DISTINCTROW tblMoneyManagerName.[Account Name],
Sum(qry2007Totals.[SumOfCommission Amount]) AS 2007,
Sum(qry2008Totals.[SumOfCommission Amount]) AS 2008, [YOY Difference]/[2008]
AS [% Change], [2008]-[2007] AS [YOY Difference], tblMoneyManagerName.[Year
End 2007 Commission], tblMoneyManagerName.[Projected 2008], [2008]/[Projected
2008] AS [% to Projected]
FROM (tblMoneyManagerName INNER JOIN qry2008Totals ON
tblMoneyManagerName.[Account Name] = qry2008Totals.[Account Name]) INNER JOIN
qry2007Totals ON tblMoneyManagerName.[Account Name] = qry2007Totals.[Account
Name]
GROUP BY tblMoneyManagerName.[Account Name], [YOY Difference]/[2008],
[2008]-[2007], tblMoneyManagerName.[Year End 2007 Commission],
tblMoneyManagerName.[Projected 2008], [2008]/[Projected 2008];
get all the other information but I do not get the totals. Can someone help?
SELECT DISTINCTROW tblMoneyManagerName.[Account Name],
Sum(qry2007Totals.[SumOfCommission Amount]) AS 2007,
Sum(qry2008Totals.[SumOfCommission Amount]) AS 2008, [YOY Difference]/[2008]
AS [% Change], [2008]-[2007] AS [YOY Difference], tblMoneyManagerName.[Year
End 2007 Commission], tblMoneyManagerName.[Projected 2008], [2008]/[Projected
2008] AS [% to Projected]
FROM (tblMoneyManagerName INNER JOIN qry2008Totals ON
tblMoneyManagerName.[Account Name] = qry2008Totals.[Account Name]) INNER JOIN
qry2007Totals ON tblMoneyManagerName.[Account Name] = qry2007Totals.[Account
Name]
GROUP BY tblMoneyManagerName.[Account Name], [YOY Difference]/[2008],
[2008]-[2007], tblMoneyManagerName.[Year End 2007 Commission],
tblMoneyManagerName.[Projected 2008], [2008]/[Projected 2008];