Results 1 to 2 of 2
  1. #1
    okie76 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Location
    Oklahoma
    Posts
    1

    How do I get an avg and a count in a query

    Hello,



    First off I am very new to access and learning "on my own" as I go, so I will probably be asking lots of questions here the next few months

    My first question: In my query I have 2 columns. Column 1 is the Technician names and the names aren't really names but instead a 5 digit number followed by the company that the technician works for (example "98701 - Slapstick, 98702 - Slapstick, 98703 - Slapstick and so forth") these tech names get repeated many times as customers turn in complaints or kudo's, thus generating a new record. Column 2 is a number that will always be either "nothing,1,2,3,4,5" that corresponds to how well or poorly a technician did. What I need help in doing is making a Column 3 and 4 with column 3 counting the number of times that "the first 5 values in column 1 of the same technician" (IE how many times 98701 appears, how many times 87702 appears) appears in the table and column 4 giving me an average of all the numbers in column 2.

    Any help would be greatly appreciated, but remember I am learning still. Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sounds like an aggregate (GROUP BY) Totals query. Open query in design view, click Totals button on ribbon Design tab. Set parameters as appropriate. Access Help has more guidelines on building queries with the designer.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-15-2014, 01:59 PM
  2. Help With Query where count is 0
    By racefan91 in forum Queries
    Replies: 2
    Last Post: 10-15-2013, 07:44 AM
  3. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM
  4. Count Query
    By ccordner in forum Queries
    Replies: 13
    Last Post: 10-16-2012, 12:16 PM
  5. Replies: 7
    Last Post: 05-02-2012, 08:04 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