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!

part of a field

Status
Not open for further replies.

northernbeaver

Programmer
Jul 9, 2001
164
CA
Im having a problem with the LIKE() function. I have a field with product descriptions. I want people to be able to type in a word and have it search the description field that has the word they typed in. Im even trying to hard code it at this point in time and nothing will come up.

SELECT tblPrice.Description, tblPrice.*
FROM tblPrice
WHERE (((tblPrice.Description) Like '%USB%'));


is what Im using and nothing is coming up. I have searched through the table and I know that the word USB exsists in the description field in about 10 records....but nothing. to frustrated to think right now, any help on something that should be simple should be greatly appreciated.

 
For Access I believe the wild character is *

SELECT *
FROM tblPrice
WHERE Description Like '*USB*'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top