Results 1 to 4 of 4
  1. #1
    pwilson is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    4

    Counting Yes No Fields


    I have several yes/no fields and need a count of the ones coded yes. It is counting all coded yes and no. Any ideas!!

  2. #2
    jwreding is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    34
    Add another column to your query for the yes/no field, and enter "True" for the criteria. In the Total section, choose Where.

  3. #3
    pwilson is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    4
    Quote Originally Posted by jwreding View Post
    Add another column to your query for the yes/no field, and enter "True" for the criteria. In the Total section, choose Where.
    I am able to get this to work if I need a total on just 1 yes/no field. It is not counting correctly if I put more than 1 yes/no field. I do have other criteria like audit name and audit date, plus 12 yes/no fields.

  4. #4
    dblife's Avatar
    dblife is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2011
    Location
    South Shields, UK
    Posts
    104
    Have you tried simply adding them up in a final column but ensure all the original fields have had the Nz() function used on them to cope with nulls - I read somewhere the problem with yes/no boxes is they are difficult to deal with nulls with.
    Most serious access users use them very sparingly.
    Maybe there is a better way to get your results than using checkboxes?

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

Similar Threads

  1. Counting Entries
    By adams.bria in forum Queries
    Replies: 6
    Last Post: 08-26-2011, 10:41 AM
  2. Counting only 'checked' Yes/No fields on a
    By pwdpwd in forum Programming
    Replies: 9
    Last Post: 04-14-2011, 09:28 AM
  3. Replies: 4
    Last Post: 04-09-2011, 10:39 AM
  4. Counting
    By rfs in forum Forms
    Replies: 0
    Last Post: 03-15-2011, 03:20 PM
  5. Counting across multiple fields
    By shak2 in forum Programming
    Replies: 37
    Last Post: 10-20-2010, 10:20 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