Since splitting my db i'm having problems looping through recordsets, i think it's something to do with the movenext or possibly the calculation of the recordCount as i'm only looping to the first record.
Any help much appreciated, code below.
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblMyTable")
If Not rst.EOF Then
For i = 1 To rst.RecordCount
other code here
rst.MoveNext
Next i
End If
rst.Close
dbs.Close
Set rst = Nothing
Set dbs = Nothing
Any help much appreciated, code below.
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblMyTable")
If Not rst.EOF Then
For i = 1 To rst.RecordCount
other code here
rst.MoveNext
Next i
End If
rst.Close
dbs.Close
Set rst = Nothing
Set dbs = Nothing