Results 1 to 5 of 5
  1. #1
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    Counting Results: Passed/Failed!

    Hey there,



    I have a Query in which i need to calculate the results:


    Fields in Query:

    Producttype
    Product
    Results (Paased/Failed)

    so i want to calculate how many results are passed or failed for each Product:

    thanks.

    zee

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    One way is to use an aggregate query:

    SELECT Results, Count(Product) as CountOfProduct
    FROM yourquery
    GROUP BY Results

  3. #3
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    well, thats great it gives how many passed and failed. i am also looking to calculate ir by ProductType then for each Product how many passed and failed. so how it will be?
    thanks

  4. #4
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    hey thanks. it is solved. some times answers are just next to door and just need to open this. thanks man.

  5. #5
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome. I'm glad you got the last step worked out!

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

Similar Threads

  1. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  2. Select Query with lookup params passed from form
    By sariahdog in forum Queries
    Replies: 0
    Last Post: 07-18-2011, 09:10 AM
  3. Replies: 1
    Last Post: 04-06-2011, 04:33 AM
  4. Form Data Not being passed onto query
    By fmoses in forum Queries
    Replies: 2
    Last Post: 08-20-2009, 08:33 AM
  5. Failed to update all field
    By somya123 in forum Queries
    Replies: 0
    Last Post: 01-30-2009, 12:52 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