+ Reply to Thread
Results 1 to 2 of 2

Access Query, Checkbox returns all results that are not empty

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Access Query, Checkbox returns all results that are not empty

    I have multiple fields in a table [Table1] that some have numbers in them

    I have a form [SearchF] made to run a query that has multiple checkboxes named [field1CHK], [field2CHK] and so on.

    When i check [Field1CHK]i would like all records in [Field1] with anything in that field to show up in the query.

    additionally if [field2CHK] i would like all records in [Field2] with anything in that field to show up in the query.

    and finally if either are checked then to run the query and return if either have anything in them.

    ......Damn this stuff is hard to explain.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Access Query, Checkbox returns all results that are not empty

    You need to construct your query as a string, adding bits depending on the results of the checkboxes eg

    Please Login or Register  to view this content.
    Apologies, ive not got Access in front of me but basically create the full query, get the SQL and then break it down into the above sort of construction.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 03-30-2013, 08:36 AM
  2. Query searching returns incorrect results
    By vampyr07au in forum Access Tables & Databases
    Replies: 18
    Last Post: 06-02-2011, 11:35 AM
  3. Query in Access returns incorrect results
    By johnhurgeton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2010, 11:31 AM
  4. String Manipulation in MS Query works, returns no results in Worksheet
    By PePPaZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2010, 02:33 PM
  5. Get Access Query Results
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2009, 05:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1