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

Query for wild cards in string

Status
Not open for further replies.

llmclaughlin

Programmer
Aug 20, 2004
140
US
I'm going to have a string passed to a query. The string will be something like GT024A8183838. The string will not always be the same length which is where my problem comes in. The table that get's queried will the have the string as GT024A?1?????

When i run the query with GT024A8183838 it needs to find the one like GT024A?1?????

Thanks in advance
 
I believe what you want is

field like 'GT024A_1%'
 
I forgot to add that the _ (underscore) is a place holder while the % (percent) can contain any number of characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top