View Full Version : Grouping Totals


whitestone
06-27-2003, 02:35 AM
Hello All,

I have a database which contains information about Legacy donations given to my charity. I am currently running research on this data.

What I want to know is whether I can run a query (or any other tool) which will enable me to see how many donors gave whithin certain groups of amount. For example, how many gave between £100 and £1000, £1001 and £5000, £5000 and £10000 etc. Each donor has a unique reference number which I could use to run a count but I don't know how to set up a query to group the data like this.

help

Ben

jeremie_ingram
06-27-2003, 08:45 AM
You could use a criteria expression within the query. It would be Between # and # . If you would like to be prompted for the range that is returned, put this in the criteria field Between [Lowest Amt] and [Highest Amt]

IgorB
06-27-2003, 11:43 AM
Query:

SELECT DonorID, Count(DonorId) AS TotalDonors
FROM YourTableName
WHERE YourMoney between 1 and 1000
GROUP BY DonorID

Igor

Best regards from Russia.

Pat Hartman
06-27-2003, 01:26 PM
If you are using a newer version of Access, try the Partition() function. Otherwise, write your own.