D
DS
I have a crosstab query.
TRANSFORM CCur(Nz(Sum([CDQuantity]*[CDPrice]),0)) AS TL
SELECT tblCheckDetails.CDBizDay
FROM tblCheckDetails INNER JOIN (tblRptSetUp INNER JOIN tblSalesCats ON
tblRptSetUp.SalesCatID = tblSalesCats.SalesCatID) ON
tblCheckDetails.CDReportID = tblRptSetUp.ReportCatID
GROUP BY tblCheckDetails.CDBizDay
PIVOT tblSalesCats.SalesCatName In
("FOOD","LIQUOR","WINE","BEER","OTHER","SUB","TAX","TOTAL");
What I would like to do is the "Other" SalesCat field to be a total of the
SalesCat fields other than "Food","Liquor","Wine" or "Beer".
How would I do this?
Thanks
DS
TRANSFORM CCur(Nz(Sum([CDQuantity]*[CDPrice]),0)) AS TL
SELECT tblCheckDetails.CDBizDay
FROM tblCheckDetails INNER JOIN (tblRptSetUp INNER JOIN tblSalesCats ON
tblRptSetUp.SalesCatID = tblSalesCats.SalesCatID) ON
tblCheckDetails.CDReportID = tblRptSetUp.ReportCatID
GROUP BY tblCheckDetails.CDBizDay
PIVOT tblSalesCats.SalesCatName In
("FOOD","LIQUOR","WINE","BEER","OTHER","SUB","TAX","TOTAL");
What I would like to do is the "Other" SalesCat field to be a total of the
SalesCat fields other than "Food","Liquor","Wine" or "Beer".
How would I do this?
Thanks
DS