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

ASP (VBScript) in Dreamweaver 8 1

Status
Not open for further replies.

MichaelF81

Programmer
Sep 20, 2005
178
US
I am running .ASP connected to a SQL server 2000 back-end, and am trying to get this code to work. It is essentially a search page that pulls the entered text from the previous page. This query should take the text from the form, and find any record in any of those fields that is similar to the text entered. The "Like" command is not working and I need it to be so that if I enter 2, it can pull 123, 312, 213 and so on.

Thanks in Advance.

SELECT manuID, Manufacturer, Address, City, State, zipcode, Country, Phone, Fax, mfrEMail, Website, DearlDistributor, CDAvailable, Discount, LibraryLocation, AccountNum, LocalRep, Contact, RepAddress, RepCity, RepState, RepZipCode, RepPhone, repFax, RepEMail, LastUpdate, currentPriceList, AdditionalPhone, repWebsite
FROM dbo.tblManufacturers
WHERE (Manufacturer similar 's')
ORDER BY Manufacturer
 
and I am aware that similar is not real, i put it in as a reminder to what I need.

Thanks
 
You just need to add wildcards
Code:
WHERE (Manufacturer LIKE '%s%')

[Peace][Pipe]
 
Cheech,

You make me feel like a complete fool. I have done this so many times and I get stuck on the little things more often than not. Thank you so much for your assistance, I greatly appreciate it.

Enjoy your star,

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top