S
Steve
I have the following sql:
SELECT tblPayments.InvoiceId, tblPayments.PaymentId,
tblPayments.PaymentDate, tblPayments.PaymentCheckNumber,
Sum(tblPayments.PaymentAmount) AS SumOfPaymentAmount
FROM tblPayments
GROUP BY tblPayments.InvoiceId, tblPayments.PaymentId,
tblPayments.PaymentDate, tblPayments.PaymentCheckNumber;
There are six rows in the table. I need a total by InvoiceId which would
give me a total of 4 rows, 2 invoices having 2 payments each.
I know I am missing something simple, but just am not seeing it.
TIA
SELECT tblPayments.InvoiceId, tblPayments.PaymentId,
tblPayments.PaymentDate, tblPayments.PaymentCheckNumber,
Sum(tblPayments.PaymentAmount) AS SumOfPaymentAmount
FROM tblPayments
GROUP BY tblPayments.InvoiceId, tblPayments.PaymentId,
tblPayments.PaymentDate, tblPayments.PaymentCheckNumber;
There are six rows in the table. I need a total by InvoiceId which would
give me a total of 4 rows, 2 invoices having 2 payments each.
I know I am missing something simple, but just am not seeing it.
TIA