K
Kathleen
Here is my Select Case statement - it tests for values in a text field - and
if it matches - then sets the background color. Works like a champ - HOWEVER
- what I really want it to do is to look for the text values - ANYWHERE in
the text field - then set that color.
Ideas???? How can I use the Like function here?
Me![Contract Name (s)].BackColor = 16777215 'White - set as default
Select Case Me![Contract Name (s)]
Case "Linear"
Me![Contract Name (s)].BackColor = 8454143 'Yellow
Case "Ramp"
Me![Contract Name (s)].BackColor = 4259584 'Green
Case "Summit"
Me![Contract Name (s)].BackColor = 12632256 'Grey
Case "Cracker Jack"
Me![Contract Name (s)].BackColor = 16777088 'Light Blue
Case "Marathon"
Me![Contract Name (s)].BackColor = 4227327 'Orange
End Select
if it matches - then sets the background color. Works like a champ - HOWEVER
- what I really want it to do is to look for the text values - ANYWHERE in
the text field - then set that color.
Ideas???? How can I use the Like function here?
Me![Contract Name (s)].BackColor = 16777215 'White - set as default
Select Case Me![Contract Name (s)]
Case "Linear"
Me![Contract Name (s)].BackColor = 8454143 'Yellow
Case "Ramp"
Me![Contract Name (s)].BackColor = 4259584 'Green
Case "Summit"
Me![Contract Name (s)].BackColor = 12632256 'Grey
Case "Cracker Jack"
Me![Contract Name (s)].BackColor = 16777088 'Light Blue
Case "Marathon"
Me![Contract Name (s)].BackColor = 4227327 'Orange
End Select