RitaMoloney
Registered User.
- Local time
- Today, 03:45
- Joined
- May 6, 2004
- Messages
- 50
I have four tables called;
tblParishioners:- AccountNo, AccountName
tblYears:- YearID, AccountNo, YearPeriod
tblCollections:- CollectionID, YearID, CollectionType, NoCollections, AmtPerCollection
tblAccDetails:- AccDetailsID, CollectionID, CollDate, Status, Remark, AmountPaid
A person will be paying towards 1 or more CollectionTypes in any given year.
I am trying to create a query to sum up Total Amt Paid, Total Amt Unpaid, Total Due to be paid in any given year for each person.
I can create a query to sum the totals in each collections;
Total Amt Paid = Sum([tblAccDetails.AmountPaid])
TotalDue = [NoCollections]*[AmtPerCollection]
TotalAmtUnpaid = [Total Amt Paid]-[TotalDue]
How do I calculate the sum of these to create totals for the year for each person?
tblParishioners:- AccountNo, AccountName
tblYears:- YearID, AccountNo, YearPeriod
tblCollections:- CollectionID, YearID, CollectionType, NoCollections, AmtPerCollection
tblAccDetails:- AccDetailsID, CollectionID, CollDate, Status, Remark, AmountPaid
A person will be paying towards 1 or more CollectionTypes in any given year.
I am trying to create a query to sum up Total Amt Paid, Total Amt Unpaid, Total Due to be paid in any given year for each person.
I can create a query to sum the totals in each collections;
Total Amt Paid = Sum([tblAccDetails.AmountPaid])
TotalDue = [NoCollections]*[AmtPerCollection]
TotalAmtUnpaid = [Total Amt Paid]-[TotalDue]
How do I calculate the sum of these to create totals for the year for each person?