请问这个错是什么意思
错误类型:
ADODB.Recordset (0x800A0CB3)
当前记录集不支持更新。这可能是提供程序的限制,也可能是选定锁定类型的限制。
/dkh/admin/dkhinfo/dkhinfo_edit_save.asp, 第 25 行
页面代码如下:
<!-- #include file= "conn.asp " -->
<%
dim xdkhbh
dim xdkhjlname
dim xdkhjl
dim xdkhmc
dim xdkhdz
dim xyw1
dim xyw2
dim xyw3
dim xdkhtc
xdkhbh=request.form( "dkhbh ")
xdkhjlname=request.form( "taocan ")
xdkhjl=request.form( "dkhjl ")
xdkhmc=request.form( "dkhmc ")
xdkhdz=request.form( "dkhdz ")
xyw1=request.form( "yw1 ")
xyw2=request.form( "yw2 ")
xyw3=request.form( "yw3 ")
xdkhtc=request.form( "dkhtc ")
set rs=server.createobject( "ADODB.RECORDSET ")
sql= "select * from dkhinfo where dkhbh= ' "&xdkhbh& " ' "
rs.open sql,conn,1,1
rs( "dkhbh ")=xdkhbh
rs( "dkhjlname ")=xdkhjlname
rs( "dkhjl ")=xdkhjl
rs( "dkhmc ")=xdkhmc
rs( "dkhdz ")=xdkhdz
rs( "yw1 ")=xyw1
rs( "yw2 ")=xyw2
rs( "yw3 ")=xyw3
rs( "dkhtc ")=xdkhtc
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write " <script> alert( '客户资料已成功修改 ');location= ' "&request.ServerVariables( "HTTP_REFERER ")& " ' </script> "
response.end
%>
------解决方案--------------------1,1这句的参数错误,你的参数为只读的所以无法更新就报错了。应该为rs.open sql,conn,1,3