M
Maureen
TRANSFORM Nz(Sum([Invoice Footer History]![Quantity]),0) AS Quantity
SELECT Inventory.MANUF, [Invoice Footer History].[Product Code],
Inventory.Description
FROM Inventory INNER JOIN ([Invoice Footer History] INNER JOIN [Invoice
Header History] ON [Invoice Footer History].[invoice number] = [Invoice
Header History].Invoice) ON Inventory.ProdCode = [Invoice Footer
History].[Product Code]
GROUP BY Inventory.MANUF, [Invoice Footer History].[Product Code],
Inventory.Description
ORDER BY Inventory.MANUF
PIVOT "Wk" & DateDiff("ww",[Invoice Date],Date()) In
("Wk0","Wk1","Wk2","Wk3","Wk4","Wk5","Wk6","Wk7","Wk8","Wk9","Wk10","Wk12","
Wk13");
I am converting a number of things from access qry's to sql views. Most are
working just fine with some minor tweaking. On this I am getting a "syntax
error near SUM" any suggestions?
M
SELECT Inventory.MANUF, [Invoice Footer History].[Product Code],
Inventory.Description
FROM Inventory INNER JOIN ([Invoice Footer History] INNER JOIN [Invoice
Header History] ON [Invoice Footer History].[invoice number] = [Invoice
Header History].Invoice) ON Inventory.ProdCode = [Invoice Footer
History].[Product Code]
GROUP BY Inventory.MANUF, [Invoice Footer History].[Product Code],
Inventory.Description
ORDER BY Inventory.MANUF
PIVOT "Wk" & DateDiff("ww",[Invoice Date],Date()) In
("Wk0","Wk1","Wk2","Wk3","Wk4","Wk5","Wk6","Wk7","Wk8","Wk9","Wk10","Wk12","
Wk13");
I am converting a number of things from access qry's to sql views. Most are
working just fine with some minor tweaking. On this I am getting a "syntax
error near SUM" any suggestions?
M