I have a Membership database which I maintain for a local non-profit environmental group. The db has many tables, but the two main tables are the Members Table (demographic data) and the Contributions Table (shows each contribution made by a member). One member can have multiple contributions so I do have a one-to-many relationship defined between the Members table and the Contributions table.
At the end of each year, reports have to be compiled for the Board of Directors and split into giving levels -- $50-$249, $250-$1,000, and so on. So, I have to pull all the contributions for the year and I do that using an expression in the date field of >=[Beg Date] and <=[End Date]. That way my end user, who is menu driven and never actually sees the database can input the correct dates to get a particular year's contributions.
Now, since I have to split these into giving level amounts, I wrote an expression in a query >=50 and <=249, but that doesn't give me what I want.
Let's say John Doe has made six contributions in 2011 of $50 each. When I run the above query, it will show John Doe six times in the resulting table, but what I actuallly need is for John Doe to show one time in a table in the $250-$1,000 level (because his total contributions for the year was $300).
I need to somehow be able to group by member (using their ID#) then sum all of their contributions for the year and have it return only one resulting record.
I know I have somehow done this in the past with an earlier version of Access (I'm using 2010 Pro now), but can't seem to accomplish this now. I have used the Total button but it just gives me the same results as if I hadn't. (Puzzled)
I do not know how to use SQL or VBA, so .....
At the end of each year, reports have to be compiled for the Board of Directors and split into giving levels -- $50-$249, $250-$1,000, and so on. So, I have to pull all the contributions for the year and I do that using an expression in the date field of >=[Beg Date] and <=[End Date]. That way my end user, who is menu driven and never actually sees the database can input the correct dates to get a particular year's contributions.
Now, since I have to split these into giving level amounts, I wrote an expression in a query >=50 and <=249, but that doesn't give me what I want.
Let's say John Doe has made six contributions in 2011 of $50 each. When I run the above query, it will show John Doe six times in the resulting table, but what I actuallly need is for John Doe to show one time in a table in the $250-$1,000 level (because his total contributions for the year was $300).
I need to somehow be able to group by member (using their ID#) then sum all of their contributions for the year and have it return only one resulting record.
I know I have somehow done this in the past with an earlier version of Access (I'm using 2010 Pro now), but can't seem to accomplish this now. I have used the Total button but it just gives me the same results as if I hadn't. (Puzzled)
I do not know how to use SQL or VBA, so .....