Results 1 to 2 of 2
  1. #1
    Ekhart is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    80

    Searching on Split-Form to ignore order of text

    So I have a search on a split-form which works fine. The only issue I have with it is it will only search in the exact format the text is entered in the text box. So if I search for John Jones it will search for John Jones, or if I search for Iowa John Jones it will search for that, but if it was entered as say 'John Jones Iowa' it will not find it because the Iowa is out of order. Is there a way to have the search field search for each word in the text box anywhere in the field and only display those records which have all of the words entered, just anywhere not in any specific order?



    Code below is a single field which includes person name, company name, services offered, and location. So if I was searching for a chiropractor in Iowa I could type 'Iowa Chiropractor' and it would show them all, or 'Iowa Chiropractor Jones' if I knew the providers name was Jones.
    Code:
    [ProviderSearch] Like "*" & [Forms]![frmProviderSearch]![ProviderSearchFieldTxt] & "*"

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    You might get ideas from this article in the code repository.
    You can put the form and code into your own database.

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

Similar Threads

  1. Replies: 6
    Last Post: 07-31-2016, 11:49 AM
  2. Replies: 1
    Last Post: 04-09-2015, 05:13 PM
  3. Replies: 7
    Last Post: 06-06-2013, 10:32 AM
  4. Remove/Ignore beginning of text file on import
    By Insyderznf in forum Import/Export Data
    Replies: 9
    Last Post: 10-24-2011, 04:56 PM
  5. Replies: 1
    Last Post: 11-07-2010, 11:04 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