searching for strings of *****

ghodges

Registered User.
Local time
Today, 09:45
Joined
Dec 1, 2009
Messages
13
Hello I have a small problem which i am sure somebody has come accross before.

I have a comments field in a table
somebody has been writing comments preffixed and suffixed with stars

for example "*****hello world*******"

I need to write a query to find thess string of stars "*****"

since i cant just write a query such as Like "*****" as this just returns everything
--------
is * a special character?

I have tried addressing this * as /*, \*, '* ,and many others with no sucess:confused:

any ideas would be appreciated....please
 
Try

Like "*[*]*"

or it might be:

Like "*" & [*] & "*"
 
Or if that fails you can use this in your criteria:

Instr(1,[FieldNameHere], "*") > 0
 
thanks again

the correct sollution, as you suggested, is
Like "*
[*]*"


Which i would not have guessed in a million years
Thanks
:)
 

Users who are viewing this thread

Back
Top Bottom