I'm trying to understand how a piece of code works in a continuous form. The routine clones the form's recordset and moves though each record in the "RiInit" field and deselects all values that are true except the record currently selected. My question is how does it know not to deselect the current record? While this is exactly what I want it to do, I'm just trying to understand the mechanics.
Code:
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
If rs.RecordCount > 0 Then
rs.MoveFirst
End If
While Not rs.EOF
If rs!RiInit.Value = True Then
rs.Edit
rs!RiInit.Value = False
rs.Update
End If
rs.MoveNext
Wend
Set rs = Nothing