Results 1 to 3 of 3
  1. #1
    0siris00 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2022
    Posts
    1

    User input form, retrieves values from query with + or - (or >= or <=) of user input

    I have a form that is used essentially as a means for a user to search for records based on input criteria. This criteria are text boxes that the user can type in text based criteria based on country names. There are also text boxes where the user can input numbers, based on survey results. I want the user to be able to put a number in the form, and the results will include that number plus those that are greater than that number. So if the form says "Input minimum survey results average", and the user puts in "8", the query will return all numbers equal to or above 8: 8, 8.3, 9, 10, etc. How do I set the criteria in the query for this box to retrieve results from the table, via the query, that is >= user input?



    Thanks!

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    If you search on "ms access how to pass form values to a query" you'll get lots of instructions, some like this one

    https://youtu.be/bSV1JXFsFaA
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in the query, use the full path to the text box:

    ...where [field] >= forms!fMyForm!txtBox

    (use the BUILDER, it always gets it right!)

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

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2018, 03:38 AM
  2. Replies: 1
    Last Post: 06-03-2016, 08:23 PM
  3. Replies: 1
    Last Post: 11-04-2014, 12:07 PM
  4. A query based on user input in form
    By drhassan in forum Queries
    Replies: 17
    Last Post: 01-20-2014, 06:00 PM
  5. display a list of values based on user input
    By karl1971 in forum Access
    Replies: 3
    Last Post: 12-06-2011, 09:19 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