Got a pretty easy one i think but i dont know how to do it. How can i open a recordset in code and loop through each record so i can test certain conditions for each record any help would be appreciated thanks
Set rst = CurrentDB.OpenRecordset("YourSet", dbOpenDynaset)
If rst.EOF = True And rst.BOF = True Then
Call MsgBox("There are no records"
Else
rst.MoveFirst
Do Until rst.EOF = True
Do your stuff here
rst.MoveNext
Loop
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.