Results 1 to 2 of 2
  1. #1
    Poida3934 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    May 2013
    Posts
    2

    Smile Group Totals Based On Values

    I am an infrequent access user, and have a totalling problem. I have a query which pulls out a list of students, and the colleges they are going to, as well as their gender (M/F, nothing in between!). I'm trying to produce a report that basically shows me the following, but can't figure out the appropriate function/formula to tally the genders seperately :

    Smith College Male : 15 Female : 12
    Jones College Male : 11 Female : 9

    Totals : Male : 26 Female : 21

    Thanks in advance!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Options:

    1. Use report Grouping & Sorting features: create a group section on the gender field and put aggregate calc in the section footer: Count(*)

    2. Use IIf expressions in report footer:

    Sum(IIf([Gender]="M",1,0))

    Sum(IIf([Gender]="F",1,0))
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can I count Null values in a totals query?
    By bgephart in forum Queries
    Replies: 2
    Last Post: 08-29-2012, 10:13 AM
  2. Totals (group b)y + Update query?
    By acenumber5 in forum Queries
    Replies: 4
    Last Post: 06-14-2012, 10:47 AM
  3. Replies: 1
    Last Post: 03-27-2010, 06:13 AM
  4. Totals in a query-based report
    By babylikesburgh in forum Reports
    Replies: 4
    Last Post: 02-24-2010, 03:08 PM
  5. Group Totals in a form
    By mai1081 in forum Forms
    Replies: 1
    Last Post: 05-14-2008, 06:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums