Because TotalDue is an expression of a sum that is creating a problem
Thanks Bob
SELECT tblInvoice.OwnerID, Sum(tblInvoice.OwnerPercentAmount) AS
TotalDue, qPaidAmountForPayment.PaidTotal, Max(tblInvoice.InvoiceDate) AS
MaxOfInvoiceDate
FROM tblInvoice LEFT JOIN qPaidAmountForPayment ON tblInvoice.OwnerID =
qPaidAmountForPayment.OwnerID
GROUP BY tblInvoice.OwnerID, qPaidAmountForPayment.PaidTotal
ORDER BY tblInvoice.OwnerID;
Klatuu said:
You use a Calculated Field in your query. In the Query builder where
you put the name of the field, you make up a name followed by a colon,
then you put in the expression. It would look like this:
AmountRemaining: [Total Due] - [Paid Amount]
The name AmountRemaining is only an example. Use any name you want.
If my query has these 2 fields in it "Total Due" and "Paid Amount"
what expression do I use to get "Total Due" Minus "Paid Amount"