I have two tables
Contacts
Donations
They are joined by the ContactID in the Contacts table (an autoGenerated Priomary Key)
One Contact can have Many Donations during the year.
I need to be able to figure out who has donated IN TOTAL for the year between Ranges of Numbers.
So for example, I need to know who has donated between $1 and $100; between 100.01 and $500, etc. and I need to sort by year (those amounts during 2001)
My problem is: I can generate a report that totals the donations for each person, but I cannot SORT the report by totals per person/contactID
I want the report to only print out names of peole that donated between x and y for time period between Q and R.
The fields I need for the report are contacts.contactId; contacts.firstname, contacts.lastname and then donations.donationamount (but sorted by TOTAL for the linked ContactID) and donations.donationdate (Solely to sort the Period of the Total Donations for each ContactID Between date1 and Date 1).
I cannot figure out how to write the query/queries to get this kind of report. I tried a cross tab query to get the totals donated by each ContactID/Person and that worked, but I cannot seem to use a date parameter in that query or an amount parameter on the Total SUM by ContactID.
Is this possible ?
Contacts
Donations
They are joined by the ContactID in the Contacts table (an autoGenerated Priomary Key)
One Contact can have Many Donations during the year.
I need to be able to figure out who has donated IN TOTAL for the year between Ranges of Numbers.
So for example, I need to know who has donated between $1 and $100; between 100.01 and $500, etc. and I need to sort by year (those amounts during 2001)
My problem is: I can generate a report that totals the donations for each person, but I cannot SORT the report by totals per person/contactID
I want the report to only print out names of peole that donated between x and y for time period between Q and R.
The fields I need for the report are contacts.contactId; contacts.firstname, contacts.lastname and then donations.donationamount (but sorted by TOTAL for the linked ContactID) and donations.donationdate (Solely to sort the Period of the Total Donations for each ContactID Between date1 and Date 1).
I cannot figure out how to write the query/queries to get this kind of report. I tried a cross tab query to get the totals donated by each ContactID/Person and that worked, but I cannot seem to use a date parameter in that query or an amount parameter on the Total SUM by ContactID.
Is this possible ?