I know how to use access VBA to get the total count of records in the recordset. Which is what I do below, but I am in need of taking my main rs and splitting the rs into sub-recordsets every 50 records. Meaning if rs.RecordCount = 200
- then I would want to create, rs1, rs2, rs3, rs4 and the recordCount of each should be 50.
How can I dynamically split a recordset into sub-recordsets as desecribed above? This is how I get the count in the primary recordset
Set rs = CurrentDb.OpenRecordset("Select firen, daja, globaltwo", dbOpenDynaset)
With rs
If Not .EOF And Not .BOF Then
.MoveLast
.MoveFirst
Do While Not .EOF
qty = rst.RecordCount
Debug.Print qty
Loop
End If
End With
rs.Close
Set rs = Nothing