M
mabyn
I've created a query that does "almost" what I want. The way it is set up is:
Column One
COMPANYNAME
Column Two
REGISTRATIONFEE
Column Three
PAYMENTAMOUNT (what's been paid)
Column Four
AMOUNTDUE (Should be RegistrationFee less PaymentAmount)
It works in every instance where the Company paid something but for the ones
that they have not paid, it puts nothing. I need for Column Four to be what
is really due. If someone can help me, I would appreciate it. Thank you.
SELECT [Attendees].[CompanyName], [Payments].[PaymentAmount],
[Registration].[RegistrationFee], ([RegistrationFee]-[PaymentAmount]) AS
AmountDue
FROM Attendees LEFT JOIN (Registration LEFT JOIN Payments ON
[Registration].[RegistrationID]=[Payments].[RegistrationID]) ON
[Attendees].[AttendeeID]=[Registration].[AttendeeID];
Column One
COMPANYNAME
Column Two
REGISTRATIONFEE
Column Three
PAYMENTAMOUNT (what's been paid)
Column Four
AMOUNTDUE (Should be RegistrationFee less PaymentAmount)
It works in every instance where the Company paid something but for the ones
that they have not paid, it puts nothing. I need for Column Four to be what
is really due. If someone can help me, I would appreciate it. Thank you.
SELECT [Attendees].[CompanyName], [Payments].[PaymentAmount],
[Registration].[RegistrationFee], ([RegistrationFee]-[PaymentAmount]) AS
AmountDue
FROM Attendees LEFT JOIN (Registration LEFT JOIN Payments ON
[Registration].[RegistrationID]=[Payments].[RegistrationID]) ON
[Attendees].[AttendeeID]=[Registration].[AttendeeID];