> Hi,
>
> If * is the wildcard (can be % too), try
No. The "*" in LIKE "*this*" = contains characters "this"
Example: LIKE "*cat*" would return records with the characters "cat" in the
field, it would return a record with "MajorWeponCatclaw" in the field.
> LIKE "*" & [prompt to the user:] & "*"
>
[quoted text clipped - 20 lines]
> >
> > (Comment: Lotus is much easier to use, especially something like this)
Michel Walsh - 29 Mar 2006 20:01 GMT
Hi,
with
LIKE "*" & [prompt to the user:] & "*"
if the end user type
cat
at the prompt, then a record with "MajorWeaponCatClaw" WILL be selected,
indeed. You have tried it? That is not what you want?
Vanderghast, Access MVP
>> Hi,
>>
[quoted text clipped - 30 lines]
>> >
>> > (Comment: Lotus is much easier to use, especially something like this)
Tom Ellison - 29 Mar 2006 20:25 GMT
Dear Teck:
Likely, you are wanting to select "words" delimited by spaces. Is that the
case?
How about:
WHERE " " & [YourColumnName] & " " LIKE "* " & [Enter search string: ] & "
*"
If you want to find ",this" you're going to have some work to do. Are there
delimiters other than space?
Tom Ellison
>> Hi,
>>
[quoted text clipped - 30 lines]
>> >
>> > (Comment: Lotus is much easier to use, especially something like this)