Results 1 to 6 of 6
  1. #1
    peterpos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    3

    Counting the actual number of results froma query

    hello
    sorry if this is very basic knowledge but I cannot figure out how to do this with my client database
    I have a query that gives me gender (male, female, and unknown)
    with the corresponding status of each person ( positive, negative or not known)

    I wish to get the total number of each ie
    males who arepositive
    male who are negative


    male who are unknown
    female who are positive
    female who are negative
    female who are unknown
    unknown who arepositive
    unknown who are negative
    unknown who are unknown
    my query just gives me each clients gender and status
    But how do I get a total number for each group

    thanks for any assistance
    peter

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  3. #3
    peterpos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    3
    Quote Originally Posted by orange View Post
    Please show us your query sql.

    see http://www.w3schools.com/sql/sql_func_count.asp
    here is a screen shot of the query
    Attached Thumbnails Attached Thumbnails query.png  

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Remove the discharge date from the grid,
    add clientID to the grid
    and select Count in the Total Line.

    Try it and let us know

  5. #5
    peterpos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    3
    thanks
    that works perfectly

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

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

Similar Threads

  1. Replies: 3
    Last Post: 07-06-2015, 07:28 AM
  2. Replies: 3
    Last Post: 03-09-2015, 12:14 AM
  3. Replies: 8
    Last Post: 02-03-2013, 01:19 AM
  4. Replies: 3
    Last Post: 05-12-2012, 04:52 AM
  5. Delete query, deleting customers froma table.
    By keithsrobinson in forum Queries
    Replies: 2
    Last Post: 02-14-2006, 11:33 AM

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