Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I search for a "*" in a text box.

Status
Not open for further replies.

jbleoo

Technical User
Apr 22, 2003
14
US
When I enter in the criteria like * , it gives me everything. I know that * is a wild card. I have text with the * in it that I need to filter out.

Thanks
Jason
 
WHERE ((InStr(1,[TableName]![FieldName],"*")>"0"));

Ed Metcalfe.

Please do not feed the trolls.....
 
How are ya jbleoo . . .
Code:
[blue]WHERE ([purple][b][i]Your Criteria[/i][/b][/purple]) AND (InStr(1,[purple][b][i]TableName[/i][/b][/purple]].[[purple][b][i]FieldName[/i][/b][/purple],"*")=0);[/blue]

Calvin.gif
See Ya! . . . . . .
 
Like '*[*]*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top