# Re: Answer for "总笔数"

Posted by Spencer Yang on April 15, 1999 at 04:08:29:

In Reply to: DAO物件的问题？ posted by Alan on April 14, 1999 at 17:01:40:

关于显示总笔数, 可参阅 vb help 之中RecordCount之说明及其范例。

另造成上一笔或下一笔移动之错误，在于是否判断到达第一笔或者最后一笔。

case "上笔"
data1.recordset.moveprevious
if data1.recordset.bof then
data1.recordset.movefirst
end if
case "下笔"
data1.recordset.movefirst
if data1.recordset.eof then
data1.recordset.movelast
end if

Follow Ups: