请大家帮我看下,测试时出了点问题,对象不支持count属性
<%
set sjk=server.CreateObject( "adodb.recordset ")
sjk.open "select * from [users] where u_user= ' " & request.Form( "t_user ") & " ' ",conn1
if sjk.count> 0 then '就这里,怎么才能让对象支持count属性呢?该怎么改?
response.Write( "用户 " & request.Form( "u_user ") & "已经存在,用其他的吧! ")
sjk.close
set sjk=nothing
conn1.close
set conn1=nothing
response.End
else
sjk.close
sjk.open "users " ,conn1,1,3
sjk.addnew
sjk( "u_user ")=request.Form( "t_user ")
sjk( "u_code ")=request.Form( "t_code ")
sjk( "u_qu ")=request.Form( "t_qu ")
sjk( "u_nicheng ")=request.Form( "t_nicheng ")
sjk.update
sjk.close
end if
%>
------解决方案--------------------recordcount吧