Results 1 to 3 of 3
  1. #1
    Mubashar is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    2

    Query Required to count Data

    I want to count multiple fields having multiple values in each column. I want to display data like Following pattern:

    Data:


    Coursecode Gender Response
    ACC311 Male 4
    ACC311 Female 5
    ACC311 Female 4
    ACC311 Female 4
    ACC311 Female 4
    ACC311 Male 5
    ACC501 Male 4
    ACC501 Female 1
    ACC501 Male 4
    ACC501 Male 5
    ACC501 Female 5
    ACC501 Male 1


    Required Output:

    CourseCode Total Male Female CQ5 CQ4 CQ3 CQ2 CQ1
    ACC311 67 45 22 11 38 7 4 7
    ACC501 713 485 228 111 453 48 46 55

    There are different courses in which all students (male, female) participated and gave response (1,2,3,4,5).

    I want to make summary of each course like in Course ACC311 total 67 students participated, 45 male and 22 Females.. 11 students opted option '5', 38 opted option '4' and so on......

    Database.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Make a 'report' table that looks like your final example above.
    then make a series of append queries that sum and add to the table.
    Then after all have added, the final query will sum the table to 'remove' the blanks and put the rows together.

  3. #3
    Mubashar is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    2
    Quote Originally Posted by ranman256 View Post
    Make a 'report' table that looks like your final example above.
    then make a series of append queries that sum and add to the table.
    Then after all have added, the final query will sum the table to 'remove' the blanks and put the rows together.

    Thanks RanMan for your reply

    Are you talking about PivotTable? If yes, than i have tried this but it doesn't work because when i add one more column in data file, the pivotable doesn't work......What kind of append queries you are talking about...Can you explain with example...

    Thanks

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

Similar Threads

  1. Replies: 4
    Last Post: 11-12-2015, 01:15 PM
  2. Sample Data Base Required
    By mirfanmalik in forum Access
    Replies: 5
    Last Post: 04-17-2015, 11:38 AM
  3. Replies: 2
    Last Post: 04-15-2014, 01:59 PM
  4. Possible outline structure for this data is required
    By Resorte in forum Database Design
    Replies: 3
    Last Post: 08-03-2012, 12:21 PM
  5. How to count data from another query by date
    By Brian62 in forum Queries
    Replies: 2
    Last Post: 11-17-2010, 11:35 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