纯代码: Dim DB as DataBase Dim Rst as Recordset set db=opendatabase(数据库路径) set rst=db.openrecordset(表名) 向前移: if not(rst.eof and rst.bof) then rs.moveprevous if rs.bof then '当移过首记录时,就移向末记录 rs.movelast end if end if 其他的就想楼上那位说的一样用movenext ,movelast ,movefrist控制就行了如果用的是data控件的话: data1.recordset.movefrist data1.recordset.moveprevous data1.recordset.movenext data1.recordset.movelast
movenext前移一条记录
movelast移到尾
movepreious向后移一条记录
当recordcount=0的时候不能用~~~~~~~
Dim DB as DataBase
Dim Rst as Recordset set db=opendatabase(数据库路径)
set rst=db.openrecordset(表名)
向前移:
if not(rst.eof and rst.bof) then
rs.moveprevous
if rs.bof then '当移过首记录时,就移向末记录
rs.movelast
end if
end if
其他的就想楼上那位说的一样用movenext ,movelast ,movefrist控制就行了如果用的是data控件的话:
data1.recordset.movefrist
data1.recordset.moveprevous
data1.recordset.movenext
data1.recordset.movelast