急,麻烦各位帮帮忙
代码如下:
---------------------------------------
<%
set conn=server.createobject("adodb.connection")
param="driver={microsoft access driver (*.mdb)}"
conn.open param & ";dbq=" & server.mappath("psd.mdb")
sql="select*from psd where id='"&admin&"' and psd='"&www&"'"
set rs=conn.Execute(sql)
%>
<table border=1>
<tr><td>
<% =rs(0) %>
</td>
<td>
<% =rs(1) %>
</td>
</tr>
</table>
--------------------------------------
但是我运行的时候却显示:
错误类型:
ADODB.Field (0x80020009)
麻烦各位大哥帮忙看看,谢谢
问题点数:10、回复次数:2Top
1 楼ttt2(孩子她爸)回复于 2003-09-02 12:42:41 得分 5
sql="select * from psd where id="&admin&" and psd='"&www&"'"
<%if not rs.eof
<% =rs(0)
end if%>Top
2 楼liuyann(liuyann)回复于 2003-09-02 12:42:51 得分 5
1. modify the statment
sql="select * from psd where id='"&admin&"' and psd='"&www&"'"
2. check the recordset state
if rs.eof then
// this is empty recordset, add your process
end if
3.<% = rs.fields(0).value %>Top



