Om du vill ha både data och antal träffar så är det ganska effektivt att hämta alla poster till en array med ett anrop.
push = "select * from hallgren where candy = 'Tutti Frutti'"
set rs = connect.execute(push)
if rs.eof then
cnt = 0
else
arr = rs.getrows()
cnt = ubound(arr,2) + 1
end if
response.write cnt
eller om du bara vill ha antalet träffar
push = "select count(*) from hallgren where candy = 'Tutti Frutti'"
set rs = connect.execute(push)
response.write rs(0)
------------------ essentitia preter non sans multiplicandum