Results 1 to 4 of 4
  1. #1
    researchRE is offline Novice
    Windows XP Access 2016
    Join Date
    Sep 2018
    Posts
    7

    Text Box in Form | Filter field for min and max value

    Hello,



    How do you use a text box in a form to filter a value within a query to determine the min/max value? Would that require VBA coding? Could you please show me an example?

    Thanks,

    Melissa

  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
    You'd have this in the criteria of the appropriate field:

    Forms!FormName.TextboxName
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    researchRE is offline Novice
    Windows XP Access 2016
    Join Date
    Sep 2018
    Posts
    7
    Hi pbaldy - thanks so much for your response. Instead of adding the above to the criteria within the query, is there a way to use VBA coding so that I can filter the data within the form and then print it?

    Here is an example:

    Click image for larger version. 

Name:	filter for report.png 
Views:	5 
Size:	60.4 KB 
ID:	35515

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    To print a report filtering to that value I'd probably use this to open a report:

    http://www.baldyweb.com/wherecondition.htm
    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. Replies: 5
    Last Post: 08-30-2016, 12:55 PM
  2. filter for text within field in Combo Box
    By swenger in forum Forms
    Replies: 11
    Last Post: 06-06-2016, 06:53 AM
  3. Replies: 9
    Last Post: 02-24-2015, 11:19 AM
  4. Combobox subform filter: text field vs. number field
    By Alhassani in forum Programming
    Replies: 2
    Last Post: 07-08-2014, 10:04 AM
  5. Filter Value from a form placed in a text box
    By Musicguy2112 in forum Forms
    Replies: 5
    Last Post: 10-31-2011, 04:01 PM

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