need SQL help
CS3 - Classic ASP
I have a keyword search form on my page. I can search any keyword within Details and return records, but not by City. What am I doing wrong? Following is a much shortened example of my actual SQL for simplification.
SELECT City, Details
FROM tbl_Cities, tbl_Main
WHERE tbl_Cities.CityID = tbl_Main.CityID AND Details LIKE %MMColParam% OR City LIKE %MMColParam2% (have also tried tbl_Cities.City)
Name: MMColParam
Type: Text
Value: Request.Querystring("search")
Default value: %
Name: MMColParam2
Type: Text
Value: Request.Querystring("search")
Default value: %
tbl_Cities = CityID (number) and City (text)
tbl_Main = MainID (number), Details (text), and CityID (number).
