Hi, you can solve this by making 2 queries:
one totals query qtotPayments to get the total amount payed:
Code:
SELECT Payment.[Visit #], Sum(Payment.[Payment Amount]) AS [SumOfPayment Amount]
FROM Payment
GROUP BY Payment.[Visit #];
and then the second query linking the totals query to the charge table:
Code:
SELECT Charge.[Visit #], Charge.[Charge Amount], qtotPayments.[SumOfPayment Amount]
FROM qtotPayments INNER JOIN Charge ON qtotPayments.[Visit #] = Charge.[Visit #]
ORDER BY Charge.[Visit #];