Results 1 to 2 of 2
  1. #1
    AudiA4_20T is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    28

    Need a count of a Duplicates Query

    Ok this one shouldn't be hard but I'm having a tough time figuring out the best way to do it.



    I have a table with zip codes in it, and each zip might have a letter associated in another column. For example

    Column A Column B
    20183 P
    20183 F
    20183 E
    20183 P

    I want a query that tells me how many P,F, and E's there are for each zip. Is this possible? It's basically a duplicate of a duplicate with a count function.

    Thanks in advance you guys are always very helpful

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Create an Aggregate (Totals) Query.

    Here's how:
    - Create a query and add your "Column A" field, and your "Column B" field TWICE.
    - Click on the "Totals" button (looks like a Sigma)
    - This will add a Totals row under each field and add the phrase "Group By" under each field
    - On the last "Column B" field, change the Totals value of "Group By" to "Count"

    This should give you what you want.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-23-2011, 11:56 AM
  2. Count unique records - no duplicates
    By Kevo in forum Queries
    Replies: 4
    Last Post: 08-15-2011, 01:19 AM
  3. Don't count duplicates
    By shenberry in forum Queries
    Replies: 1
    Last Post: 10-27-2010, 09:28 PM
  4. Query returns duplicates
    By RobRay in forum Queries
    Replies: 3
    Last Post: 10-26-2010, 01:38 PM
  5. Duplicates in Query
    By Dega in forum Queries
    Replies: 1
    Last Post: 05-02-2010, 05:09 PM

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