kindly guide me do create paging on group
after start of every group new paging starts page sets to 1again and pages set to group total page
this funcion on calling gives page 1 out of 1 at every page
after start of every group new paging starts page sets to 1again and pages set to group total page
Code:
Function paging(vsch, vclass)
Set rs = CurrentDb.OpenRecordset("SELECT * FROM AT WHERE f1='" & vsch & "' AND f2='" & vclass & "'")
RSCOUNT = rs.RecordCount
PGS = 1
PGT = Ceiling(RSCOUNT / 24)
paging = "PAGE" & PGS & "OUT OF" & PGT
rs.Close
Set rs = Nothing
End Function
Comment