Do you really need to do so? What do you need to loop for?
Anyway, here it is:
Code:
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("TableOrQueryNameHere")
Do Until rst.EOF
'...do something
rst.MoveNext
Loop
rst.Close
Set rst = Nothing