Ignore certain words in textbox

Atthe

Member
Local time
Today, 15:37
Joined
Oct 26, 2021
Messages
57
Hi All,

I have a search text box in my forms and frequently have end users enter irrelevant information into the text whilst trying to search which results in no matches found.

Can someone help with some code to remove certain words(That I can specify from within the code) from the text box (Example the end users searches 'Apple 2345' I need the code to remove Apples and leave me with '2345'

Thanks
 
Hi. You could use the Replace() function. For example:

Replace([Textbox], "apple", "")
 
what "specifics" do you need to remove? the text and leave only the number?
 
Maybe something like this search feature would work to give total flexibility.
The user can type in "Apple 1234" then have the option to search "Apple", "1234", "Apple or 1234", "Apple and 1234"
 
You could have an Ignore list for those words/strings you do not want to be in the search criteria.
 

Users who are viewing this thread

Back
Top Bottom