A
annysjunkmail
I am trying to get a query to return records to show outstanding
balances which greater are than 0. When I add >0 as criteria I get a
popup box asking for TotalOrders?
I have worked at it for ages but can't work it out.
Can someone help please.
Here is my SQL
SELECT [Quantity]*[UnitPrice] AS TotalOrders, Payments.PaymentAmount,
[TotalOrders]-[PaymentAmount] AS Balance
FROM (Orders LEFT JOIN Payments ON Orders.OrderID = Payments.OrderID)
INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID
WHERE ((([TotalOrders]-[PaymentAmount])>0));
Many thanks
Tony
balances which greater are than 0. When I add >0 as criteria I get a
popup box asking for TotalOrders?
I have worked at it for ages but can't work it out.
Can someone help please.
Here is my SQL
SELECT [Quantity]*[UnitPrice] AS TotalOrders, Payments.PaymentAmount,
[TotalOrders]-[PaymentAmount] AS Balance
FROM (Orders LEFT JOIN Payments ON Orders.OrderID = Payments.OrderID)
INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID
WHERE ((([TotalOrders]-[PaymentAmount])>0));
Many thanks
Tony