private page as integer
private perpage as integer
public CmboCount_AfterUpdate
if not isNull me.CmboCount then
perPage = me.cmboCount
page = 1
'some code here to set focus to button 1
SelectRecords
end if
Private sub SelectRecords()
dim strSql as string
dim notIn as integer
if page = 1 then
strSql = "Select Top " & perpage & " * from someQuery"
else
notIn = (Page - 1) * perpage
strSql = "Select Top " & perpage & " * from somequery where someID NOT in (Select Top " & NotIN & " someID from somequery"
end if
me.rowSource = strSql
end sub
Private sub BtnA_Click()
'same code for B,C,D,E,F
'you will have to write code to change the button captions as you scroll
page = cint(btnA.caption)
selectRecords
end sub
Can i do it and with comboboxhere is your paginator that you upload.