Results 1 to 2 of 2
  1. #1
    turboace is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    1

    Queries - Count items in a column

    I have a large database one column contains data. For example colours - so each record is either green, red blue etc. The colours are not stored in a separate linked table as the main table is an extract from a different system.

    I'm trying to produce a query which will count the number of records with each of the colours so...

    Red 26
    Blue 14
    Green 6



    How do I create one query to count each of the colours please?

    Thanks

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Try

    SELECT TABLENAME.COLORNAME, COUNT(TABLENAME.COLORNAME)
    FROM TABLENAME
    GROUP BY TABLENAME.COLORNAME;

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

Similar Threads

  1. Count data items by name
    By msuguy71 in forum Programming
    Replies: 9
    Last Post: 01-29-2014, 02:19 AM
  2. Copy items in a column to the clipboard
    By kevinscomp in forum Access
    Replies: 1
    Last Post: 08-07-2013, 06:57 PM
  3. Replies: 8
    Last Post: 05-24-2011, 03:41 PM
  4. Count Items by Time Period
    By pawslover in forum Queries
    Replies: 1
    Last Post: 11-15-2010, 03:57 PM
  5. Added items in a column.
    By Wrangler in forum Forms
    Replies: 3
    Last Post: 03-25-2006, 07:56 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