C
ChuckL
I have a form in which I am displaying multiple records.
Each record can either be a "Yes" or "No". Can I have the
BackColor of the records with "Yes" turn Red and the
BackColor of the records with "No" turn Green? I used the
following code (below) and, because one of my records
displays "Yes" they all turn Red - including the "No"s.
Thanks Much!!
Private Sub Form_Current()
' If value in text boxes say yes then the back color
' of the text box will turn red, otherwise it will
turn green
If (Me!FinishedbutnotreviewedSNROs) = "Yes" Then
Me!FinishedbutnotreviewedSNROs.BackColor = 255
' Otherwise, display value as green
Else
Me!FinishedbutnotreviewedSNROs.BackColor = 4259584
End If
End Sub
Each record can either be a "Yes" or "No". Can I have the
BackColor of the records with "Yes" turn Red and the
BackColor of the records with "No" turn Green? I used the
following code (below) and, because one of my records
displays "Yes" they all turn Red - including the "No"s.
Thanks Much!!
Private Sub Form_Current()
' If value in text boxes say yes then the back color
' of the text box will turn red, otherwise it will
turn green
If (Me!FinishedbutnotreviewedSNROs) = "Yes" Then
Me!FinishedbutnotreviewedSNROs.BackColor = 255
' Otherwise, display value as green
Else
Me!FinishedbutnotreviewedSNROs.BackColor = 4259584
End If
End Sub