Results 1 to 2 of 2
  1. #1
    AsjenW is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    6

    Checkbox data in query: only when checked


    I've got a search form where people can search for applicants with different properties. One of those is e.g. Has a Car.

    I'd like the results of the query to show which people have a car when the checkbox is checked, and just to show all people (so no criteria) when the checkbox is unchecked. How can I do that, without having to use multiple criteria rows in the query (in design view)?

    Thanks in advance!

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    One possible way would be to have two separate queries set up - one of them that shows people who have cars and one that shows everyone.
    Then - when your users click a Search Button on the form - if the check box is checked - display the 'hascars' query - otherwise display the 'everyone' query.
    Hope this helps!

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

Similar Threads

  1. display image if checkbox is checked
    By Casey Sanders in forum Reports
    Replies: 5
    Last Post: 04-03-2013, 04:49 PM
  2. If checkbox is checked allow query to run
    By burrina in forum Forms
    Replies: 14
    Last Post: 01-29-2013, 03:56 PM
  3. VBA for testing if checkbox is checked
    By rhewitt in forum Programming
    Replies: 0
    Last Post: 09-26-2012, 07:11 AM
  4. Display Text Only if Checkbox is Checked
    By Rick5150 in forum Forms
    Replies: 2
    Last Post: 09-16-2012, 09:19 AM
  5. If checkbox is checked, add X to a current value
    By INeedAboutTreeFiddy in forum Programming
    Replies: 4
    Last Post: 05-30-2012, 08:17 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