Results 1 to 4 of 4
  1. #1
    bikeordie1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    10

    Question Filter based on part of value

    Hi, New to the forms here



    Looking for help on a special filter. I'd like to filter a field on a report based on if a string is anywhere within the field. So prompt the user for entry (they enter "red") and it filters [Description] for anything that contains the word red somewhere in that field. I'm familiar with using a filter "[description] = " & SearchInput!Criteria. But that only grabs fields that just say "red" only.

    Thanks for the help!

  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,640
    You use Like and wildcards, like:

    "[description] Like '*" & SearchInput!Criteria & "*'"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bikeordie1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    10
    you are my savior. worked great thanks

  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,640
    Happy to help!
    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. Chart filter based on header value
    By trivanka in forum Reports
    Replies: 3
    Last Post: 02-14-2013, 05:23 PM
  2. How Can export Large table part by part
    By shabar in forum Import/Export Data
    Replies: 2
    Last Post: 02-04-2013, 06:29 AM
  3. Replies: 1
    Last Post: 10-05-2012, 08:48 AM
  4. Replies: 16
    Last Post: 06-02-2012, 06:11 AM
  5. How to Filter a Form Based on checkmarks?
    By Silverhand4e in forum Forms
    Replies: 3
    Last Post: 01-09-2012, 04:47 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