I am trying to set the backcolor of a label and am getting a type mismatch. This code fires in the after update event of the combobox.
strColor = vbRed in this example. I have also tried it using hex values. In the underlying table for cboSourceType, Column 3 is a text data type.
strColor = vbRed in this example. I have also tried it using hex values. In the underlying table for cboSourceType, Column 3 is a text data type.
Code:
Me!lblColor.BackColor = FFFFFF
strColor = cboSourceType.Column(3)
MsgBox strColor
Me!lblColor.BackColor = strColor
Comment