求助:rs.recordcount 返回值为 -1,怎么回事?
zuida 2006-12-02 09:15:03
……
set rs=conn.execute("select gsname from tcinfor where gsname='"&gsname&"'")
if rs.recordcount>0 then
set rs=nothing
response.Write "<script language=JavaScript>{window.alert('同一记录不能重复添加!');window.location.href='admin_writeto.asp';}</script>"
response.End()
end if
set rs=nothing
……
我调试了好几次都没成功,好来发现 rs.recordcount返回值每次都是-1,这是怎么回事呢?