如果将数据库指针移到制定的记录号

道素 2002-03-28 09:25:03
不使用记录中的任何内容,只凭借记录号,怎么将指针精确移动,不如将指针移到第二十条,不管它是什么内容。
谢谢了
...全文
63 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
shensilang 2002-03-29
  • 打赏
  • 举报
回复
dim cn as new adodb.connection
dim rs as new adodb.recordset
dim aa as integer
cn.open(dsn="数据源名")
rs.open"select * from 数据表名"
aa=rs.recordcounts
if rs.recordcount>=20 then
rs.move 20
endif
water_j 2002-03-28
  • 打赏
  • 举报
回复
rs.open
rs.movefirst
do until eof and bof
if recordcounts>=20 then
rs.move 20
end if
loop
yinguangbo 2002-03-28
  • 打赏
  • 举报
回复
n=20
dim rs as new adodb.recordset
a.move n
注意n不能超过rs的记录数
thorkhan 2002-03-28
  • 打赏
  • 举报
回复
Dim rsA As New ADODB.Recordset
rsA.AbsolutePosition = 20

828

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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