Results 1 to 7 of 7
  1. #1
    Join Date
    May 2018
    Posts
    4

    Question Create query from a Form with Check Boxes

    I am a beginner in Access and am now trying to create a query using the status of check boxes in a form. Can someone help me?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    We might if you gave us some info. What query have you attempted? What happens - error message, wrong results, nothing?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    Depending, check boxes could be a hindrance. We'd need to see your example.

  4. #4
    Join Date
    May 2018
    Posts
    4
    I have created a query using 2 tables both do not have unique ids. Now I want to create a form which can take input from the user on "One filed" on few criteria and then to use that inputs to run the query. For example, I have item_number as one field in a table. Now I need to have inputs as "Exclude items starting with AXXX", "Exclude Items starting with 2000XX" etc. I have 4 different criteria and the number of criteria doesn't change. they are fixed. I created a table with these criteria and then tried creating a form, but unfortunately the form allows more inputs, doesn't limit the options as I fix. This may sound silly for you all. But I would appreciate your help. Thanks

  5. #5
    Join Date
    May 2018
    Posts
    4
    Quote Originally Posted by ranman256 View Post
    Depending, check boxes could be a hindrance. We'd need to see your example.
    I have attached the sample file. I have two tables named tbl_Parts and tbl_Products and I have created a query with some criterial to filter it. I also have created a form with option buttons. Now I would like to know how can I use the option buttons to feed the criteria for my query. I wish to get these inputs from the users.
    Please let me know if there is a better way to get the same results with user inputs on these.
    Thanks
    Attached Files Attached Files

  6. #6
    Join Date
    May 2018
    Posts
    4
    I have attached the file. Thanks for the help
    Quote Originally Posted by June7 View Post
    We might if you gave us some info. What query have you attempted? What happens - error message, wrong results, nothing?

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Use VBA to construct filter criteria. Apply filter to form or report, not query. Review http://allenbrowne.com/ser-62.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 8
    Last Post: 01-24-2017, 02:45 PM
  2. Check all check boxes on continuous form
    By NISMOJim in forum Forms
    Replies: 7
    Last Post: 06-14-2016, 02:14 AM
  3. Replies: 3
    Last Post: 11-10-2015, 11:42 AM
  4. Replies: 15
    Last Post: 11-18-2013, 10:49 PM
  5. Create Email form with check boxes
    By onmyway in forum Forms
    Replies: 6
    Last Post: 10-10-2013, 02:55 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