Results 1 to 2 of 2
  1. #1
    zakaria is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Nov 2019
    Posts
    1

    Count Fields in Access Query

    Hi



    I have a Boolean field about attendance (Yes/No) I want to calculate the number of attendance (Yes) in query for every student.

    ID Name W1 W2 W3
    1 John Yes No Yes
    2 George No No Yes

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Run 3 count queries, then a union query to sum those.

    but,your table is designed wrong, it should be:
    ID, W, Wval
    2, w1,no
    2,w3,yes

    So you can count anything.

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

Similar Threads

  1. Replies: 5
    Last Post: 09-28-2017, 07:19 AM
  2. Help with mulitple count fields in one query
    By SDCragg in forum Queries
    Replies: 1
    Last Post: 03-01-2015, 02:01 AM
  3. Replies: 2
    Last Post: 04-15-2014, 01:59 PM
  4. 'Count' two fields in a Query
    By dr4ke in forum Queries
    Replies: 2
    Last Post: 01-18-2013, 10:00 AM
  5. Multiple count of query fields
    By BLD21 in forum Queries
    Replies: 2
    Last Post: 05-23-2011, 01: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