C
Chris Crook
Hey all,
I am creating a search engine that will allow a user to enter "xxxx
AND xxxxx", "xxxx NOT xxxxx", and "xxxxx OR xxxxx" into a textbox on a
form. I know very little VBA; however, I think I have a good start on
a Replace function that I can place in the criteria line of a query.
The criteria line would look like this: Like "*" & [fncReplace()] &
"*". The replace function would then look for " AND " and replace it
with: " & ""*"" AND LIKE ""*"" & "
the end result in the criteria line would then be:
Like "*" & "cat" & "*" AND LIKE "*" & "dog" & "*"
I would be sooooo grateful if anyone give provide some pointers on how
to get this thing working.
Cheers,
Chris
I am creating a search engine that will allow a user to enter "xxxx
AND xxxxx", "xxxx NOT xxxxx", and "xxxxx OR xxxxx" into a textbox on a
form. I know very little VBA; however, I think I have a good start on
a Replace function that I can place in the criteria line of a query.
The criteria line would look like this: Like "*" & [fncReplace()] &
"*". The replace function would then look for " AND " and replace it
with: " & ""*"" AND LIKE ""*"" & "
the end result in the criteria line would then be:
Like "*" & "cat" & "*" AND LIKE "*" & "dog" & "*"
I would be sooooo grateful if anyone give provide some pointers on how
to get this thing working.
Cheers,
Chris