set rs = cn.execute("select * from myTable where fieldName = 'field value'"
if rs.eof then
'record was not found
else
'record was found
end if
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
set rs = cn.execute("select * from myTable"
valFound = false
do while not rs.eof
if rs("fieldName" = "some value" then
valFound = true
exit do
enf if
rs.movenext
loop
if valFound then
'handle here
end if
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.