Ok...I have a continuous form, if I wanted to do something like:
If TxtBox.text = "a" Then
TxtBox.ForeColor = 255
Elseif TxtBox.text = "b" Then
TxtBox.ForeColor = 128
Elseif TxtBox.text = "c" Then
TxtBox.ForeColor = 0
Else
TxtBox.ForeColor = 233
End If
What I am looking for is to have it look through each record and change the forecolor depending on the value of TxtBox. What happens now is that if I use this...it changes the color of all the TxtBox.Text. I just want it to go through and change the colors of the Boxes if they meet the criteria of a b or c. I am a beginner, can anyone help? TIA!!!
If TxtBox.text = "a" Then
TxtBox.ForeColor = 255
Elseif TxtBox.text = "b" Then
TxtBox.ForeColor = 128
Elseif TxtBox.text = "c" Then
TxtBox.ForeColor = 0
Else
TxtBox.ForeColor = 233
End If
What I am looking for is to have it look through each record and change the forecolor depending on the value of TxtBox. What happens now is that if I use this...it changes the color of all the TxtBox.Text. I just want it to go through and change the colors of the Boxes if they meet the criteria of a b or c. I am a beginner, can anyone help? TIA!!!