Working on a simple book database and working on a search feature. The search feature is working replacing all the spaces between words with wildcards, but need to insert wildcards at the beginning and end of the search string. How would I accomplish this?
Thanks in advance,
The Gambian Colonel
2007-01-06
16:20:50
·
2 answers
·
asked by
thegambiancolonel1
1
in
Computers & Internet
➔ Programming & Design
Ok, perhaps a little clarification. I'm using a text box to receive input from the searcher, then using a macro to load a form using that input in the WHERE statement. I'm using a replace function to insert wildcards instead of spaces (so "y t" becomes "y*t") but I need to find a way to turn it into ("*y*t*") so it searches in front and behind as well.
2007-01-06
16:33:32 ·
update #1
Now a bit of emphasis is required. I'm using Access. I'm using a text input box. This is NOT your standard type it and pray query. I'm taking input from the above mentioned box, performing a replace function on it to replace spaces with wildcards. I need to somehow expand or add an additional step where the text in the input box has wildcards added at the beginning and end of the string, so when the string is finally used in the where statement, all the program sees is *text*more*text* instead of text*more*text.
2007-01-06
16:52:08 ·
update #2