Results 1 to 2 of 2
  1. #1
    Bcanfield83 is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    May 2018
    Posts
    81

    Question Incorporate check box value (from a form) into query?

    All,
    On my form is an unbound Check Box control which obviously would represent a "True" or "False" value.
    If the box is checked ("True"), then I want to search for a specific value in a query (which runs upon clicking a button on that same form) - but it's NOT a boolean field.
    The data type is "Short Text", and contains the value "A" or "V".

    Is there a way to do the following
    If box is checked on the form, pull over values in which that field is equal to "A" or "V"
    If box is NOT checked on the form, only pull over values in which that field is equal to "A".

    EDIT:


    I think I've figured out what to do - the info in the below article has helped
    https://stackoverflow.com/questions/...ria-in-a-query
    Last edited by Bcanfield83; 02-18-2019 at 03:19 PM. Reason: found a solution

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Sure, you'd just incorporate that into your search method. I'd probably build SQL on the fly and populate a subform, but I don't know your requirements.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. How to Incorporate New Tables for Existing Database
    By PinkDuster in forum Database Design
    Replies: 2
    Last Post: 11-25-2018, 01:59 PM
  2. Replies: 8
    Last Post: 09-21-2017, 12:53 PM
  3. Incorporate UI into a Query??
    By nick404 in forum Queries
    Replies: 6
    Last Post: 06-07-2015, 09:08 PM
  4. I want incorporate a Floorplan into my form
    By ZachAtaiyan in forum Forms
    Replies: 1
    Last Post: 07-17-2014, 03:23 PM
  5. Replies: 2
    Last Post: 01-29-2014, 01:28 PM

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