M
Mike
Below is the code I have that changed the Detail part of my form. It
works, but it does not stay that color when I navagate through the
records. So, if I chose the ComboCurrentStatus to Open, it does turn
the form (HOTLINE_FORM) Red, but if I navigate to the next record, it
is also Red, even if I changed it seconds before to Closed = Green.
Can anyone help me keep the Colors the same?
---------------------------------------------------------------------------------------------
Private Sub ComboCurrentStatus_AfterUpdate()
Select Case Me!ComboCurrentStatus
Case "Open"
Me.Detail.BackColor = vbRed
Case "Action Track"
Me.Detail.BackColor = vbYellow
Case "Closed"
Me.Detail.BackColor = vbGreen
Case Else
MsgBox "Oops, don't know the status!"
End Select
End Sub
works, but it does not stay that color when I navagate through the
records. So, if I chose the ComboCurrentStatus to Open, it does turn
the form (HOTLINE_FORM) Red, but if I navigate to the next record, it
is also Red, even if I changed it seconds before to Closed = Green.
Can anyone help me keep the Colors the same?
---------------------------------------------------------------------------------------------
Private Sub ComboCurrentStatus_AfterUpdate()
Select Case Me!ComboCurrentStatus
Case "Open"
Me.Detail.BackColor = vbRed
Case "Action Track"
Me.Detail.BackColor = vbYellow
Case "Closed"
Me.Detail.BackColor = vbGreen
Case Else
MsgBox "Oops, don't know the status!"
End Select
End Sub