Results 1 to 4 of 4
  1. #1
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76

    Unique and Count How best to Show Data

    I have a list of spare parts with 3 fields a) Unique Part No, b) Spare Type e.g Bearing and c) Mfg, the queries created below I ignored the Unique Part No



    For a single noun, e.g. BEARING i first did a Parametric QUERY based on the Table
    Then I made a 2nd query based on the 1st query to show that they stocked bearings from 32 different manufacturers
    Then I made a 3rd query also based on the 1st query to show the number of bearings stocked per Mfg

    My problem is how to get this data for all part types, e.g. BUSH, CONTACTOR etc in a single output

    Which would be the best approach?

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You can do that in one query.
    Open the query designer and add your parts table
    Click the Totals button in the design ribbon

    Now add the fields SpareType and Mfg. You will see each has group by under the field name.
    Now add Unique Part No and change the 'group by' to Count using the drop down.

    If I've understood you correctly you should now have the number of parts of each type grouped by manufacturer.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    DaveT99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    76
    Hi Ridders52
    Thanks for the help, your suggestion worked perfectly and then used this query to count the number of Mfgs for any part type
    Thanks again
    wonderful support and quick

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You're welcome
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Unique count
    By Mr.E in forum Queries
    Replies: 1
    Last Post: 02-09-2018, 11:21 AM
  2. Replies: 1
    Last Post: 03-06-2017, 06:48 AM
  3. Count Unique Problem
    By gcgoode in forum Queries
    Replies: 9
    Last Post: 09-02-2015, 03:42 PM
  4. Unique queries - Unique Count
    By bigfish in forum Queries
    Replies: 7
    Last Post: 03-14-2012, 01:28 PM
  5. Replies: 0
    Last Post: 01-03-2011, 03:38 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