Results 1 to 4 of 4
  1. #1
    rmoreno is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2013
    Posts
    51

    Totals Query Record Count with Criteria


    Hi all. I have been working on a Totals Query and I can't get the results I want. I cannot find the right way to count my records with simple criteria such as "Pass", "Fail" or "OVR". Can someone tell me how to do this please. I have attached an example of what I want to do. Thanks
    Attached Thumbnails Attached Thumbnails qry_PassFailAnalysis.jpg  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    A field like:

    Pass: Sum(IIf([P/F] = "Pass", 1, 0))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rmoreno is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2013
    Posts
    51
    OH man. I can't belive how simple that was. I was way over thinking this problem by trying to use DCOUNT, COUNT, and IIF statements. Thank you for helping me see how simple this really was.

    This issue is SOLVED.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    No problemo!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query - using Max Totals with Criteria
    By mslieder in forum Access
    Replies: 1
    Last Post: 06-19-2013, 06:02 AM
  2. Count totals per item from different tables
    By dgaletar in forum Queries
    Replies: 14
    Last Post: 02-25-2013, 09:36 AM
  3. Can I count Null values in a totals query?
    By bgephart in forum Queries
    Replies: 2
    Last Post: 08-29-2012, 10:13 AM
  4. Query Results "Count Totals"
    By tipopilotas in forum Queries
    Replies: 1
    Last Post: 03-26-2010, 10:36 PM
  5. help with totals for count text boxes
    By gacapp in forum Reports
    Replies: 10
    Last Post: 07-22-2009, 11:26 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