Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 08-04-2008, 01:39 PM   #1 (permalink)
Senior Member

Join Date: Sep 2006
Posts: 257
Rep Power: 3 jas. is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

MS Access and conditional sums

I should totally know this, but for some reason I can't seem to make it work today.

I have a yes/no for Program and a Yes/No for Reception. I have a separate number of tickets field. I need counts for the program and the reception.

For argument's sake, let's assume that there aren't separate counts for these things. So I need to sum number of tickets if Program = Yes, and separately I need to sum number of tickets if Reception = yes. How do I do this?
__________________
james andrews
manager of development services
philadelphia museum of art
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-04-2008, 01:43 PM   #2 (permalink)
annieb

andrea.bbbs's Avatar

Join Date: Dec 2006
Location: Venice, Florida
Posts: 314
Rep Power: 2 andrea.bbbs is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

If you are using MS Access you would make a query that is a sum query (backwards E thingy). Use Group by ticket type, count for ticket type, and then Where the Yes/no field = yes.
__________________
Andrea Shlasko
Database Manager
Big Brothers Big Sisters of the Sun Coast Inc.

"Just another day in Paradise, where every meal's a banquet and every day's a holiday"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-04-2008, 02:09 PM   #3 (permalink)
Senior Member

Join Date: Sep 2006
Posts: 257
Rep Power: 3 jas. is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

I see where you're going with that, but I need this in a report that has the other stuff too. Is there a way to conditionally sum a field in a report without pulling a separate query?

Like, I have the total sum of the number of tickets up top, and a list of attendees of the whole event, and I just want separate little sums of program and reception.

Sorry to ask this here, it's not even really RE related, really.
__________________
james andrews
manager of development services
philadelphia museum of art
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-04-2008, 02:23 PM   #4 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

Quote:
Originally Posted by jas. View Post
I see where you're going with that, but I need this in a report that has the other stuff too. Is there a way to conditionally sum a field in a report without pulling a separate query?

Like, I have the total sum of the number of tickets up top, and a list of attendees of the whole event, and I just want separate little sums of program and reception.

Sorry to ask this here, it's not even really RE related, really.
Do you need details above your sums or just sums?

Also, the bus has many routes that it takes and Microsoft OFFICE is traveled many many many...times
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-04-2008, 02:42 PM   #5 (permalink)
Junior Member

Olga G. Nichols's Avatar

Join Date: May 2006
Location: I live in Western New York, a few thousand miles from my homeland, Costa Rica.
Posts: 5
Rep Power: 0 Olga G. Nichols is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

I think that you can just do an IFF statement if you can do a SUM; however, if you need to do a Count, then you might need a separate little query to do this for you. I have run into trouble when counting with an Iff statement in Access. If you turn all your "yes" into "1", then a Sum should work. Your IFF statement should be something along the lines of Sum(Iff([reception field]=1,[reception field])).
__________________
Olga Gonzalez Nichols
Development Manager
Buffalo Olmsted Parks Conservancy
Buffalo NY 14214
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-04-2008, 03:43 PM   #6 (permalink)
Senior Member

Join Date: Sep 2006
Posts: 257
Rep Power: 3 jas. is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

thanks olga, I think you're on the right track, and I was mixing up my sums and iifs and whatnot.

edit: yes, I was indeed -- that worked like a charm. Thanks.
__________________
james andrews
manager of development services
philadelphia museum of art

Last edited by jas.; 08-05-2008 at 09:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Loans - Loans - Credit Counseling - Mortgage
All times are GMT -6. The time now is 07:53 PM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64