Results 1 to 3 of 3
  1. #1
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    Help With Counting values in query

    Hello everyone, looking for some help with counting values in a query . . . . . .


    I believe my attachment will explain all.

    Thank You in advance,

    Speck
    Attached Thumbnails Attached Thumbnails Query.JPG  

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    This can be done quite simply with an Aggregate Query.
    Simply start a new query and add all four fields to it.
    Then quick on the Totals button in the Query Builder design mode (looks like a Sigma).
    This will add a "Totals" row to the grid under each field in the Query Builder.
    Go to the Clock_Number field, and change the "Totals" row value from "Group By" to "Count".
    View your results.

    What this does is group your records by the first three fields, and then counts how many records appear in each distinct grouping.

    Aggregate queries are very useful, and you are sure to come across them in you use Access a lot. Note some of the other options, like "Sum", "Min", "Max", etc.

  3. #3
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Thank You so much JoeM, was exactly what I was looking for.

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

Similar Threads

  1. Counting unique values in a query
    By DHIGHTO in forum Queries
    Replies: 4
    Last Post: 01-21-2015, 08:19 AM
  2. Counting values after a specific value
    By cardgage in forum Queries
    Replies: 5
    Last Post: 03-12-2013, 07:41 AM
  3. Counting text values
    By Fish218 in forum Queries
    Replies: 3
    Last Post: 07-27-2012, 09:44 AM
  4. counting values
    By webisti in forum Access
    Replies: 1
    Last Post: 11-18-2011, 07:28 AM
  5. help counting distinct values
    By joo-joo-man in forum Queries
    Replies: 2
    Last Post: 10-17-2010, 05:18 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