Results 1 to 4 of 4
  1. #1
    irenef1223 is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2021
    Posts
    4

    Query Criteria

    Hello,

    I have 4 checkboxes (certificate, renewed, bond 1, bond 2) in my query. I want the query to display all records that have these checkboxes selected. When I use the "True" criteria under these fields, it displays only those records that have all 4 boxes selected. I want the query to show these individually, but in the same query. For example, one record could have only renewed and bond 1 selected, but they will still be displayed, even though they don't have the other 2 checkboxes checked. How can do I do this? I only know the basics of access, so any help is greatly appreciated.

    Thanks!

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,976
    Instead of writing True for all checkboxes on the same criteria line, use a separate line for each.
    Doing that acts as an OR condition rather than an AND condition.
    In other words the query will show records where any one or more of the boolean fields are true
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    irenef1223 is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2021
    Posts
    4
    Quote Originally Posted by isladogs View Post
    Instead of writing True for all checkboxes on the same criteria line, use a separate line for each.
    Doing that acts as an OR condition rather than an AND condition.
    In other words the query will show records where any one or more of the boolean fields are true
    That worked! Thank you!!!

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,976
    You're welcome
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 4
    Last Post: 12-29-2020, 11:59 AM
  2. Replies: 2
    Last Post: 04-02-2015, 12:45 PM
  3. Replies: 1
    Last Post: 11-13-2014, 11:34 PM
  4. Replies: 4
    Last Post: 08-30-2014, 10:23 AM
  5. Replies: 5
    Last Post: 08-02-2012, 09:44 AM

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