Results 1 to 4 of 4
  1. #1
    mosheva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    8

    Question Making a query with 2 count fileds

    Hello!


    I want to make a query that will return the number of time a specific item have a failure.
    From the failure list I want the query to adds up all the failures that are Like *Wiper* and then count the number of times that item had a wiper failure.

    I used the the following query but it doesn't good for me...

    field Location Item Failure Failure
    table SR SR SR SR
    total group by group by group by count
    sort



    show V V V V
    criteria 1
    like *wiper*
    or

    Here are the result:

    location Item Failure CountOfFailure
    1 13N wiper mechanic failure 1
    1 13N wiper stuck during down movement 2
    1 13N wiper stuck during up movement 1
    1 25N wiper mechanic failure 2
    1 25N wiper stuck during up movement 1
    1 25N wiper stuck during down movement 3

    Here is what I need
    location Item Failure CountOfFailure
    1 13N *wiper* 4
    1 25N *wiper* 6


    Thanks!!!

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Wherever you have criteria, try replacing "Group By" with "Where" in your query in the "Total" row & see what happens.

    Thanks

  3. #3
    mosheva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    8
    Thanks! it is start to look like I wanted...

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Glad you found it helpful.

    Thanks

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

Similar Threads

  1. Delete fileds in tables by using sql statement
    By BorisGomel in forum Access
    Replies: 4
    Last Post: 11-14-2012, 04:38 PM
  2. Populate fileds off the last record
    By BorisGomel in forum Access
    Replies: 3
    Last Post: 11-09-2011, 11:37 AM
  3. Changin report's fileds with VBA
    By ser01 in forum Reports
    Replies: 4
    Last Post: 04-14-2011, 10:46 AM
  4. How to two same fileds on the same form
    By plavookins in forum Forms
    Replies: 1
    Last Post: 04-11-2011, 03:17 AM
  5. On format, fileds that can be used
    By markjkubicki in forum Reports
    Replies: 1
    Last Post: 10-22-2010, 10:56 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