I have this sql code which works fine :
sql = "select count(city) as cx from NY where CITY='New York'"
set rs=conn.execute(sql)
response.write(rs("cx"))
The above counts all records with New York city.
I have been trying to put this on a dynamic .asp page and modify line 1 to grab city field from the page that it is being viewed, I have a field for city which I was trying to place in spot of "New York", can anybody help?