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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the 'Like' Command in Visual Basic

Status
Not open for further replies.

TZyk2003

Programmer
Jun 17, 2003
33
US
Good morning!

I have a field that I'd like to suppress if it contains certains text values.

The problem is it may contain one text value or many text values seperated by commas.

What is the syntax for doing a "Like" command (like in SQL) in Visual Basic?? I can't simply do an "=".

THANKS!

-Tim
 
You can use Instr() to find out if one string contains another.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top