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

Like search not returning proper results

Status
Not open for further replies.

capone67

Programmer
Nov 6, 2000
115
0
0
CA
I have a like SQL search running on an ASP web site. The search works in general.

Here is the SQL

SELECT ForModels.*
FROM ForModels
where ForModel like '%HM%'

The problem is I can't get any results for "Like '%HM%'"
I am specifically looking for 50HMX96


Is there something in Access that doesnt like "HM"? Even in Access there are no results returned.
 
What about this ?
where ForModel like '*HM*'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
You're using the wrong wildcard character. Access uses * not %
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top