I am trying to change the colors of a value in a list box when the
values are is based on a select query. I only want the value to
change colors, if another value associated with in the query meets the
proper criteria. The code that I have does not work however here is
what i have so far.
If Me.Station01.Column(1) = "UI" Then
Me.Station01.Column(0).Value.IsVisible = False
If Me.Station01.Column(1) = "OOS" Then
Me.Station01.Column(0).Value.ForeColor = vbYellow
If Me.Station01.Column(1) = "UC" Then
Me.Station01.Column(0).Value.ForeColor = vbWhite
If Me.Station01.Column(1) = "D" Then
Me.Station01.Column(0).Value.ForeColor = vbRed
If Me.Station01.Column(1) = "E" Then Me.Station01.Column(0).ForeColor
= vbBlue
If Me.Station01.Column(1) = "A" Then Me.Station01.Column(0).ForeColor
= vbCyan
If Me.Station01.Column(1) = "T" Then Me.Station01.Column(0).ForeColor
= vbMagenta
If Me.Station01.Column(1) = "TA" Then Me.Station01.Column(0).ForeColor
= vbWhite
If Me.Station01.Column(1) = "AOR" Then
Me.Station01.Column(0).ForeColor = vbGreen