Results 1 to 5 of 5
  1. #1
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    Query to group and count field entries

    How do I group and count different entries that are in the same field?
    I have a table that has several fields that will only have data from 1 to 5 in each field. It was a survey where the respondent chose 1 having no experience and 5 I am an expert.
    I need to be able to group all the 1's, 2's,etc together then count the number of entries for each group.

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Can you post a sample of your database?

  3. #3
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    getting started

    I don't have one yet. I have an idea on how to use data that will be arriving in a week. High school students were asked to to answer some questions rating their answers 1 no knowledge of the question to 5 I am an expert of that question.
    I will build a data entry form to fill a table normal stuff. I have always had troubles with queries. There are 25 questions.

    So question how many marked 1 as an answer? How many marked 2 as an answer, etc up to 5 and then the same for each of the 25 questions?
    So how do I do a Query to get the above results.

  4. #4
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    You should look into the COUNT() function:


    Code:
    Select Field1 as "Column A" count(*) as "Column B" 
    From Table1
    Where
    Groupby Field1
    This is just an example, but sounds like the thing you need.

    Good luck

  5. #5
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226
    Work great for me thanks

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

Similar Threads

  1. Displaying all the entries in one field
    By canfish in forum Reports
    Replies: 5
    Last Post: 07-29-2010, 02:19 PM
  2. Group by one field, but not another!?
    By Demonweare in forum Access
    Replies: 2
    Last Post: 06-23-2010, 05:12 AM
  3. Group report by a multivalued lookup field
    By jonsons in forum Reports
    Replies: 0
    Last Post: 12-01-2009, 04:08 PM
  4. Replies: 2
    Last Post: 11-18-2009, 06:49 PM
  5. Replies: 0
    Last Post: 06-03-2009, 10:25 PM

Tags for this Thread

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