ASP 运行 缺少对象

来源:百度知道 编辑:UC知道 时间:2024/05/10 07:07:42
错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: ''
/site/a.asp, 第 24 行

<%

Set cn=Server.CreateObject("ADODB.Connection")

cn.Open "DSN=留言版数据库; UID=;PWD="

Set cmd=Server.CreateObject("ADODB.Command")

cmd.ActiveConnection=cn

cmd.CommandText="Select 用户名,密码 From 用户信息"

Set rs=cmd.Execute

Do while Not re.Eof

For I=0 To rs.Fields.Count-1

Response.Write rs(I).Value
response.Write"<br>"

next

rs.MoveNext

loop

cn.Close

set cmd=Nothing

set cn=nothing

%>

Do while Not re.Eof

改成
Do while Not rs.Eof

Set rs=cmd.Execute

Do while Not re.Eof

上面set里面是rs,下面怎么成了re???

写程序要学会自己检查错误!!

MicrosoftVBScript 运行时错误(0x800A01A8)-->缺少对象

这没到24行

Do while Not re.Eof

这个应该是Rs地....把Re改过来吧...