M
Mike
My code below works at changing a text box (txtCurrentStatus)
background color (BackColor) to Red when "Open" is selected from a
Combo Box (ComboCurrentStatus) and Blue when it is not.
What I want is:
IF the ComboCurrentStatus is selected to "Open" I want the the text box
(txtCurrentStatus) to be RED.
IF the ComboCurrentStatus is selected to "Action Track" I want the the
text box (txtCurrentStatus) to be YELLOW.
IF the ComboCurrentStatus is selected to "Closed" I want the the text
box (txtCurrentStatus) to be GREEN.
Can anyone help me with my coding?
---------------------------------------------------------------------
Private Sub ComboCurrentStatus_AfterUpdate()
If Me!txtCurrentStatus = "Open" Then
Me!txtCurrentStatus.BackColor = vbRed
Else
Me!txtCurrentStatus.BackColor = vbBlue
End If
End Sub
background color (BackColor) to Red when "Open" is selected from a
Combo Box (ComboCurrentStatus) and Blue when it is not.
What I want is:
IF the ComboCurrentStatus is selected to "Open" I want the the text box
(txtCurrentStatus) to be RED.
IF the ComboCurrentStatus is selected to "Action Track" I want the the
text box (txtCurrentStatus) to be YELLOW.
IF the ComboCurrentStatus is selected to "Closed" I want the the text
box (txtCurrentStatus) to be GREEN.
Can anyone help me with my coding?
---------------------------------------------------------------------
Private Sub ComboCurrentStatus_AfterUpdate()
If Me!txtCurrentStatus = "Open" Then
Me!txtCurrentStatus.BackColor = vbRed
Else
Me!txtCurrentStatus.BackColor = vbBlue
End If
End Sub