Hi folks, I'm getting an inavalid use of null error when i run a query of:
SELECT DISTINCTROW Orders.CustomerID, Orders.OrderDate, Orders.FreightCharge, Orders.SalesTaxRate, Sum(CLng([Quantity]*[UnitPrice]*(1-[Discount])*100)/100) AS [Total Sales], Sum([Order Details].Quantity) AS [Total Units]
FROM Orders LEFT JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID
WHERE (((Orders.OrderType)="1")
GROUP BY Orders.CustomerID, Orders.OrderDate, Orders.FreightCharge, Orders.SalesTaxRate;
Can anyone see where I'm going wrong?
Cheers, Jon. [sig][/sig]
SELECT DISTINCTROW Orders.CustomerID, Orders.OrderDate, Orders.FreightCharge, Orders.SalesTaxRate, Sum(CLng([Quantity]*[UnitPrice]*(1-[Discount])*100)/100) AS [Total Sales], Sum([Order Details].Quantity) AS [Total Units]
FROM Orders LEFT JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID
WHERE (((Orders.OrderType)="1")
GROUP BY Orders.CustomerID, Orders.OrderDate, Orders.FreightCharge, Orders.SalesTaxRate;
Can anyone see where I'm going wrong?
Cheers, Jon. [sig][/sig]