recordcount属性
为何显示我的记录总数为-1呢??表中存在五十多条记录:
<%
dim a,b,c
set a=server.createobject("adodb.connection")
a.open "dbq="&server.mappath("datebase\db.mdb")&";driver={microsoft access driver (*.mdb)}"
sql="select * from admin"
Set b=a.execute(sql)
response.write(b.recordcount)
%>
[此贴子已经被阳光白雪于2007-7-6 8:14:01编辑过]