B
Bob
I have a crosstab query and I would like to know how to add a grand total at
the bottom for the three columns I have.
Here is my SQL code:
SELECT MotionWithBearings_YTD.[MI Loc], MotionWithBearings_YTD.[Branch ID],
MotionWithBearings_YTD.Name, MotionWithBearings_YTD.[Product Code],
MotionWithBearings_YTD.[YTD-2006], MotionWithBearings_YTD.[YTD-2007],
MotionWithBearings_YTD![YTD-2007]-MotionWithBearings_YTD![YTD-2006] AS
Variance
FROM MotionWithBearings_YTD
ORDER BY MotionWithBearings_YTD![YTD-2007]-MotionWithBearings_YTD![YTD-2006];
Thanks.
the bottom for the three columns I have.
Here is my SQL code:
SELECT MotionWithBearings_YTD.[MI Loc], MotionWithBearings_YTD.[Branch ID],
MotionWithBearings_YTD.Name, MotionWithBearings_YTD.[Product Code],
MotionWithBearings_YTD.[YTD-2006], MotionWithBearings_YTD.[YTD-2007],
MotionWithBearings_YTD![YTD-2007]-MotionWithBearings_YTD![YTD-2006] AS
Variance
FROM MotionWithBearings_YTD
ORDER BY MotionWithBearings_YTD![YTD-2007]-MotionWithBearings_YTD![YTD-2006];
Thanks.