J
JustinP
I am iterating through records in a subform using the "On current"
event for the subform to change the color of a textbox based on whether
it is redundant or not. Can anyone spot what I've done wrong?
Private Sub Form_Current()
With Me.RecordsetClone
If Not (.BOF And .EOF) Then
.MoveFirst
While Not .EOF
If Me.chkRedundant.Value = True Then
txtGoToPR.BackColor = RGB(64, 128, 128)
End If
.MoveNext
Wend
End If
End With
End Sub
event for the subform to change the color of a textbox based on whether
it is redundant or not. Can anyone spot what I've done wrong?
Private Sub Form_Current()
With Me.RecordsetClone
If Not (.BOF And .EOF) Then
.MoveFirst
While Not .EOF
If Me.chkRedundant.Value = True Then
txtGoToPR.BackColor = RGB(64, 128, 128)
End If
.MoveNext
Wend
End If
End With
End Sub