Check after using the MoveNext method whether the end of the file has been reached
Sub moveNext()
Dim myDatabase As dao.Database
Set myDatabase = OpenDatabase(CurrentProject.Path & "\mydb.mdb")
Dim myRecordset As dao.Recordset
Set myRecordset = myDatabase.OpenRecordset(Name:="SELECT * FROM Customers WHERE Country='Germany'", Type:=dbOpenDynaset)
myRecordset.moveNext
If myRecordset.EOF Then myRecordset.MovePrevious
End Sub