Hello! I have a recordset (called "hraftr"), and when I reach the end of the recordset, I'd like it to go back to the first entry again. I'm using the following code to do this, but I don't think it's working (or at least it returns a 'no current record' error during the transition):
Dim db as Database
Dim hraftr as Recordset
Set hraftr = db.OpenRecordset "tblCalculations"
For i = 1 to 50
If hraftr.EOF = True Then
hraftr.MoveFirst
Else
hraftr.MoveNext
End If
Next i
I cut a lot out of the code for shortness' sake, but I left everything pertaining to my problem!
Thank you for any help!!
Dim db as Database
Dim hraftr as Recordset
Set hraftr = db.OpenRecordset "tblCalculations"
For i = 1 to 50
If hraftr.EOF = True Then
hraftr.MoveFirst
Else
hraftr.MoveNext
End If
Next i
I cut a lot out of the code for shortness' sake, but I left everything pertaining to my problem!
Thank you for any help!!