错误的参数个数或无效的参数属性值: 'move'
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
set conn=server.createobject("ADODB.connection")
conn.connectionstring="provider=sqloledb;DATA SOURCE=CHEN;UID=saa;PWD=123;DATABASE=sqlDB"
conn.open
set rs=server.createobject("ADODB.recordset")
set rs.activeconnection=conn
rs.open "SELECT * FROM Goods"
Response.write("表GOODs中含有"&cstr(rs.RecordCount)&"条记录<br>")
rs.move
rs.RecordCount
if rs.EOF=True then
response.write("已经到了记录集的结尾,Move方法和EOF属性检查正常")
end if
conn.close
if conn.state=0 then
end if
set conn=nothing
%>
</body>
</html>
错误类型:
Microsoft VBScript 运行时错误 (0x800A01C2)
错误的参数个数或无效的参数属性值: 'move'
/test/recordlinkcount.asp, 第 18 行