S
Secret Squirrel
I have a continuous form that I want to change a backcolor on a specific
field based on its value. I'm using the following case select but it's not
working correctly. It's defaulting every "Vdate" field for all my records to
the first case in my code. Why is that? Also, should this code be going
behind the Current Event of my form?
Select Case Me!VDate
Case "R"
Me!VDate.BackColor = 16744703
Case "N"
Me!VDate.BackColor = 8454016
Case "U"
Me!VDate.BackColor = 16776960
Case "A"
Me!VDate.BackColor = 8454143
Case Else
Me!VDate.BackColor = -2147483643
End Select
field based on its value. I'm using the following case select but it's not
working correctly. It's defaulting every "Vdate" field for all my records to
the first case in my code. Why is that? Also, should this code be going
behind the Current Event of my form?
Select Case Me!VDate
Case "R"
Me!VDate.BackColor = 16744703
Case "N"
Me!VDate.BackColor = 8454016
Case "U"
Me!VDate.BackColor = 16776960
Case "A"
Me!VDate.BackColor = 8454143
Case Else
Me!VDate.BackColor = -2147483643
End Select