J
Jon
hi,
I have the following function which is used for determine which value should
be displayed for each employee. The problem is when there is no value, an
error massage appears. I want some body complete the function if there is no
value the txt26 will be red colored.
If Me.Category = "S1" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S2" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S3" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S4" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S5" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S6" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S7" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S8" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S9" Then
Me.txt26.BackColor = vbRed
End If
If Me.Category = "S10" Then
Me.txt26.BackColor = vbRed
End If
If Me.Category = "s11" Then
Me.txt26.BackColor = vbRed
End If
End Sub
I have the following function which is used for determine which value should
be displayed for each employee. The problem is when there is no value, an
error massage appears. I want some body complete the function if there is no
value the txt26 will be red colored.
If Me.Category = "S1" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S2" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S3" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S4" Then
Me.txt22.BackColor = vbGreen
End If
If Me.Category = "S5" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S6" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S7" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S8" Then
Me.txt24.BackColor = vbYellow
End If
If Me.Category = "S9" Then
Me.txt26.BackColor = vbRed
End If
If Me.Category = "S10" Then
Me.txt26.BackColor = vbRed
End If
If Me.Category = "s11" Then
Me.txt26.BackColor = vbRed
End If
End Sub