M
Michel Peeters
I have following:
TRANSFORM Sum(tblSalesDetails.Kg) AS [Weight]
SELECT tblSalesDetails.CustName, tblSalesDetails.CustId,
tblSalesDetails.Munt, tblSalesDetails.Artnr, tblSalesDetails.Price,
tblSalesDetails.LijnDiscount, tblSalesDetails.FactDiscount,
Sum(tblSalesDetails.Kg) AS TotalWeight
FROM tblSalesDetails
WHERE (((tblSalesDetails.Datum) Between Now() And Now()-45))
GROUP BY tblSalesDetails.CustName, tblSalesDetails.CustId,
tblSalesDetails.Munt, tblSalesDetails.Artnr, tblSalesDetails.Price,
tblSalesDetails.LijnDiscount, tblSalesDetails.FactDiscount
PIVOT "W" & DateDiff("ww",Now(),Now()-45) In
("W0","W1","W2","W3","W4","W5","W6","W7");
The cellvalues from "TotalWeight" are correct. It is the sum of the 8 weeks
(= underlying records)
But the cellvalues (the weight) from WO, W1, ...W7 are empty.
tks for help
Michel
TRANSFORM Sum(tblSalesDetails.Kg) AS [Weight]
SELECT tblSalesDetails.CustName, tblSalesDetails.CustId,
tblSalesDetails.Munt, tblSalesDetails.Artnr, tblSalesDetails.Price,
tblSalesDetails.LijnDiscount, tblSalesDetails.FactDiscount,
Sum(tblSalesDetails.Kg) AS TotalWeight
FROM tblSalesDetails
WHERE (((tblSalesDetails.Datum) Between Now() And Now()-45))
GROUP BY tblSalesDetails.CustName, tblSalesDetails.CustId,
tblSalesDetails.Munt, tblSalesDetails.Artnr, tblSalesDetails.Price,
tblSalesDetails.LijnDiscount, tblSalesDetails.FactDiscount
PIVOT "W" & DateDiff("ww",Now(),Now()-45) In
("W0","W1","W2","W3","W4","W5","W6","W7");
The cellvalues from "TotalWeight" are correct. It is the sum of the 8 weeks
(= underlying records)
But the cellvalues (the weight) from WO, W1, ...W7 are empty.
tks for help
Michel