Sheila.deJesus
She
- Local time
- Today, 21:04
- Joined
- Jul 12, 2006
- Messages
- 70
Good day!
I placed the code below on the On load event of one of my forms. My problem is it doesn't work. The [Class] field are all highlighted in red even if the value is not "CRITICAL".
Private Sub Form_Load()
If Me.[UnitClass].Value = "CRITICAL" Then
Me.[Class].BackColor = 255
End If
If Me.[UnitClass].Value = "PUSH" Then
Me.[Class].BackColor = 16711680
End If
If Me.[UnitClass].Value = "SELLING" Then
Me.[Class].BackColor = 65535
End If
End Sub
Thanks in advance!
Sheila
I placed the code below on the On load event of one of my forms. My problem is it doesn't work. The [Class] field are all highlighted in red even if the value is not "CRITICAL".
Private Sub Form_Load()
If Me.[UnitClass].Value = "CRITICAL" Then
Me.[Class].BackColor = 255
End If
If Me.[UnitClass].Value = "PUSH" Then
Me.[Class].BackColor = 16711680
End If
If Me.[UnitClass].Value = "SELLING" Then
Me.[Class].BackColor = 65535
End If
End Sub
Thanks in advance!
Sheila