G
Guest
I have set up the following Cross Tab query
PARAMETERS [Enter Customer] Text ( 255 );
TRANSFORM Sum([Main Table].Quanity) AS SumOfQuanity
SELECT [Main Table].Customer, [Main Table].Spec, [Main Table].Lot, [Main
Table].sm, Sum([Main Table].Quanity) AS [Total Of Quanity]
FROM [Main Table]
WHERE ((([Main Table].Customer)=[Enter Customer]))
GROUP BY [Main Table].Customer, [Main Table].Spec, [Main Table].Lot, [Main
Table].sm
PIVOT Format([Date],"ww") In
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53);
I am trying to generate a report based on this query. I need the report to
read by week. Obviously 53 weeks is too much for one page so I have set up
the report to show 1 Qtr per page. I would like to be able to sum [Quanity]
for each [Spec] for each page or in other words each qrt. I imagine that I
should do this in the query somehow but dont know how to do it. Any
suggestions?
PARAMETERS [Enter Customer] Text ( 255 );
TRANSFORM Sum([Main Table].Quanity) AS SumOfQuanity
SELECT [Main Table].Customer, [Main Table].Spec, [Main Table].Lot, [Main
Table].sm, Sum([Main Table].Quanity) AS [Total Of Quanity]
FROM [Main Table]
WHERE ((([Main Table].Customer)=[Enter Customer]))
GROUP BY [Main Table].Customer, [Main Table].Spec, [Main Table].Lot, [Main
Table].sm
PIVOT Format([Date],"ww") In
(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53);
I am trying to generate a report based on this query. I need the report to
read by week. Obviously 53 weeks is too much for one page so I have set up
the report to show 1 Qtr per page. I would like to be able to sum [Quanity]
for each [Spec] for each page or in other words each qrt. I imagine that I
should do this in the query somehow but dont know how to do it. Any
suggestions?