Any ideas as to why the .moveNext method does not move to next record, it always stays in the first one
the subform data is from a query (qryBuscaB), so I also tried :
Set rst = db.OpenRecordset("qryBuscaB", dbOpenDynaset)
but the same problem persists
Thanks for your help
Code:
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = Me.RecordsetClone
With rst
Do While Not .EOF
Debug.Print Me.anoMaq ' always the first record
.MoveNext
Loop
End With
the subform data is from a query (qryBuscaB), so I also tried :
Set rst = db.OpenRecordset("qryBuscaB", dbOpenDynaset)
but the same problem persists
Thanks for your help