Hey all, this is my query string here:
SELECT SUM(Total) as Total, AdministratorCode, SUM(WOD.Quantity) as thePass
FROM tblWO as WO,
tblWOD as WOD
WHERE WOD.OrderID = WO.ID
AND WO.OrderDate BETWEEN '2010-01-01' AND '2010-08-31'
AND Approved = '1'
ORDER BY WO.AdministratorCode
But i keep getting the error:
The multi-part identifier “tblWOD.Quantity” could not be bound.
Any help would be great!
Thanks,
David
SOLVED!!!
You need to use
SUM(WOD.Quantiy)(or maybe Quantity unless the column name is missing at)You have aliased the table here
tblWOD as WODso you have no table with the exposed correlation nametblWOD