作者: ADAM 时间: 2003-10-12 16:34
我先回答第二個問題:
1.設定公用物件
public dbs as database
public rst as recordset
public sumcount as long
public abscount as long
2.在窗體開啟事件中設定發下代碼:
set dbs=currentdb
set rst=dbs.openrecordset("某表或某查詢")
sumcount=rst.recordcount
3.在form的current事件中,輸入:
select case rst.absoluteposition
case 1
me.text0="top"
case sumcount
me.text0="last"
case else
me.text0=rst.absoluteposition & "of" & sumcount
end select作者: ADAM 时间: 2003-10-12 17:25
剛剛說得太復雜了
其實一條語句就可以了....
ME.TEXT0=ME.CURRENTRECORD & " OF " & ME.RECORDSET.RECORDCOUNT
嘿嘿....作者: 没牙兔兔 时间: 2003-10-13 22:51
嘻嘻,谢谢adam啦,这里谢谢你啦
你的解答好象一场及时雨哦作者: 没牙兔兔 时间: 2003-10-13 23:21
嘻嘻,两个问题都解决啦