Results 1 to 3 of 3
  1. #1
    jaltwerger is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    2

    Count specification

    I have a field that has only 2 entries, yes "y" or no "no." I'd like to run a query that will list only "y," and then count the number of total "y's."


    How can this be accomplished?
    Thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I'd like to run a query that will list only "y,"
    In the Query Builder, just place "y" in the Criteria box under this field.
    and then count the number of total "y's."
    You cannot list each "y" record individually, and get a grand total in a query. They would be two separate queries.
    What you can do is after you create your first query above that only shows the "y" records, create a new query based on this one.
    Simply add the "y" to the fields you are displaying (and ONLY this field), and then click on the Totals button (looks like a Sigma).
    This will add a "Totals" row under the field in Query Builder with the phrase "Group By" under it. Change "Group By" to "Count", and you will get your count.

    If you wish to show each individual record with a total count on the bottom, you would need to do this on a Form or Report.

  3. #3
    jaltwerger is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    2

    Thanks, Joel

    Thanks, Joel.

    Quote Originally Posted by JoeM View Post
    In the Query Builder, just place "y" in the Criteria box under this field.

    You cannot list each "y" record individually, and get a grand total in a query. They would be two separate queries.
    What you can do is after you create your first query above that only shows the "y" records, create a new query based on this one.
    Simply add the "y" to the fields you are displaying (and ONLY this field), and then click on the Totals button (looks like a Sigma).
    This will add a "Totals" row under the field in Query Builder with the phrase "Group By" under it. Change "Group By" to "Count", and you will get your count.

    If you wish to show each individual record with a total count on the bottom, you would need to do this on a Form or Report.

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

Similar Threads

  1. Import specification help
    By tplee in forum Import/Export Data
    Replies: 8
    Last Post: 01-11-2012, 03:14 PM
  2. Access 2003: Import Specification
    By compooper in forum Import/Export Data
    Replies: 2
    Last Post: 08-23-2011, 01:58 PM
  3. Specification Name
    By tgavin in forum Import/Export Data
    Replies: 5
    Last Post: 07-28-2010, 11:55 AM
  4. Modifying an import specification
    By ronzul in forum Import/Export Data
    Replies: 3
    Last Post: 11-12-2009, 05:03 AM
  5. import text specification
    By brunoylupe in forum Import/Export Data
    Replies: 12
    Last Post: 08-09-2009, 04:47 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