search any part of text field

S

Simon Davies

I need to set a criteria in a query which will search and return a word in
any part of the field.
I have used the Like[word]&"*" criteria but it only works on the first
word.

Any help or advice gratefully recieved
 
T

Tom Lake

Simon Davies said:
I need to set a criteria in a query which will search and return a word in
any part of the field.
I have used the Like[word]&"*" criteria but it only works on the
first
word.

Try

Like "*" & [word] & "*"

This will find the word anywhere in the field.

Tom Lake
 
S

Simon Davies

Many thanks

Newbie said:
How about Like "*" & [word] & "*"
Simon Davies said:
I need to set a criteria in a query which will search and return a word in
any part of the field.
I have used the Like[word]&"*" criteria but it only works on the first
word.

Any help or advice gratefully recieved
 
S

Simon Davies

Brilliant - many thanks

Tom Lake said:
Simon Davies said:
I need to set a criteria in a query which will search and return a word in
any part of the field.
I have used the Like[word]&"*" criteria but it only works on the
first
word.

Try

Like "*" & [word] & "*"

This will find the word anywhere in the field.

Tom Lake
 
Top