急...请帮忙, 分页属性AbsolutePage不能设置

Buckley 2000-09-03 01:18:00
rs.AbsolutePage=Session("CurrentPage")

错误信息:
ADODB.Recordset 错误 '800a0cb3'
提供者不支持应用程序所要求的操作。
...全文
189 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
ring 2000-09-13
  • 打赏
  • 举报
回复
rst.CursorLocation = 3
strQuery = ".........."
rst.Open strQuery, conn, 3
SunGirl 2000-09-13
  • 打赏
  • 举报
回复
低版本的MDAC中RecordCount返回-1
RecordCount只有在记录集的CursorType=1 or 3(adOpenkeyset,adOpenStatic)时才可用
若不指定CursorType则默认为0类型(adOpenForwardOnly,速度最快的游标类型),此时对
RecordCount的引用一直返回0
SimonDW 2000-09-13
  • 打赏
  • 举报
回复
rst.Open strQuery, conn, 3,3
^
这里也可为2,用后面的3
就不用设rst.CursorLocation = 3
hhzh426 2000-09-04
  • 打赏
  • 举报
回复
不能使用rs=conn.execute(...)的方法获取数据集,那样只能使用movenext的方法
必须使用rs=server.createobject("adodb.recordset")
rs.cursortype=3
0-只能向前移动
1-keyset类型
2-dynamic类型
3-static类型
rs.open "select * from xxx...",conn
rs.pagesize=yyy(注:必须获取数据集后设置pagesize才有效!)
....
rs.absolutepage=zzz
...
Buckley 2000-09-04
  • 打赏
  • 举报
回复
Thanks
huntout 2000-09-04
  • 打赏
  • 举报
回复
rs.CcursorType = 1
or
rs.CursorType = 3

subzero 2000-09-04
  • 打赏
  • 举报
回复
是你的游标类型不对吧?检查一下
Buckley 2000-09-03
  • 打赏
  • 举报
回复
另外: rs.recordcount 和 rs.pagecount 的值全为-1

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧