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.Co lumn(1) = "UI" Then
Me.Station01.Co lumn(0).Value.I sVisible = False
If Me.Station01.Co lumn(1) = "OOS" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbYellow
If Me.Station01.Co lumn(1) = "UC" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbWhite
If Me.Station01.Co lumn(1) = "D" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbRed
If Me.Station01.Co lumn(1) = "E" Then Me.Station01.Co lumn(0).ForeCol or
= vbBlue
If Me.Station01.Co lumn(1) = "A" Then Me.Station01.Co lumn(0).ForeCol or
= vbCyan
If Me.Station01.Co lumn(1) = "T" Then Me.Station01.Co lumn(0).ForeCol or
= vbMagenta
If Me.Station01.Co lumn(1) = "TA" Then Me.Station01.Co lumn(0).ForeCol or
= vbWhite
If Me.Station01.Co lumn(1) = "AOR" Then
Me.Station01.Co lumn(0).ForeCol or = vbGreen
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.Co lumn(1) = "UI" Then
Me.Station01.Co lumn(0).Value.I sVisible = False
If Me.Station01.Co lumn(1) = "OOS" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbYellow
If Me.Station01.Co lumn(1) = "UC" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbWhite
If Me.Station01.Co lumn(1) = "D" Then
Me.Station01.Co lumn(0).Value.F oreColor = vbRed
If Me.Station01.Co lumn(1) = "E" Then Me.Station01.Co lumn(0).ForeCol or
= vbBlue
If Me.Station01.Co lumn(1) = "A" Then Me.Station01.Co lumn(0).ForeCol or
= vbCyan
If Me.Station01.Co lumn(1) = "T" Then Me.Station01.Co lumn(0).ForeCol or
= vbMagenta
If Me.Station01.Co lumn(1) = "TA" Then Me.Station01.Co lumn(0).ForeCol or
= vbWhite
If Me.Station01.Co lumn(1) = "AOR" Then
Me.Station01.Co lumn(0).ForeCol or = vbGreen
Comment