G
grantschneider
I need to add column totals to the bottom of my crosstab. Here is the
code:
PARAMETERS [Month] Text ( 255 );
TRANSFORM Sum(MSF07.[Share Total]) AS [SumOfShare Total]
SELECT MSF07.Aircraft, MSF07_Crosstab1.[2007]
FROM MSF07 INNER JOIN MSF07_Crosstab1 ON MSF07.Aircraft =
MSF07_Crosstab1.Aircraft
WHERE (((Format([MSF07].[Date Closed],"mmm"))=[Month]))
GROUP BY MSF07.Aircraft, MSF07_Crosstab1.[2007]
PIVOT Format(MSF07.[Date Closed],"mmm");
Thanks
Grant
code:
PARAMETERS [Month] Text ( 255 );
TRANSFORM Sum(MSF07.[Share Total]) AS [SumOfShare Total]
SELECT MSF07.Aircraft, MSF07_Crosstab1.[2007]
FROM MSF07 INNER JOIN MSF07_Crosstab1 ON MSF07.Aircraft =
MSF07_Crosstab1.Aircraft
WHERE (((Format([MSF07].[Date Closed],"mmm"))=[Month]))
GROUP BY MSF07.Aircraft, MSF07_Crosstab1.[2007]
PIVOT Format(MSF07.[Date Closed],"mmm");
Thanks
Grant