The following code is intended to step through a recordset until one text box matches the other at which point the loop should end. The loop is in the oncurrent function of the Form.
When the code runs and the values match the loop ends and the code advances to end sub but it does not end at this point as expected rather it jumps back to the previous record in the recordset and restarts the loop which then causes an infinite loop. How can I End this Sub Procedure
Any assistance is appreciated.
Sub Form_Current()
If FindIssueFlag = True Then
Dim rsFind As Recordset
Set rsFind = Me.Recordset
Do Until Me.txtTemp.Value = Me.txtIssueID.Value
rsFind.MoveNext
Loop
End If
FindIssueFlag = False
End Sub
Regards,
Tom Duthie