E
Elwin
You're trying to retrieve a value based upon the record's
position in a recordset. I suggest using the form's
RecordsetClone object.
Dim var as Variant
Dim rst as DAO.Recordset
Set rst = Me.RecordsetClone
With rst
Do Until .EOF
If .AbsolutePosition = 5 Then
var = !MyField
Exit Do
End If
Loop
End With
rst.Close
Set rst = Nothing
position in a recordset. I suggest using the form's
RecordsetClone object.
Dim var as Variant
Dim rst as DAO.Recordset
Set rst = Me.RecordsetClone
With rst
Do Until .EOF
If .AbsolutePosition = 5 Then
var = !MyField
Exit Do
End If
Loop
End With
rst.Close
Set rst = Nothing