I am using access 2000 and want to change either background or font colour according to the word chosn from a combo box. I tried using conditional formatting but couldn't persuade it to accept an if statement.
The code below works but changes the field colors in every .
Can anybody spot the glitch or come up with an answer?
Thanks
Gordon
Private Sub Outjoin1_Change()
Select Case Outjoin1.Value
Case "his" 'Blue
Outjoin1.ForeColor = "16711680"
Case "He" 'Blue
Outjoin1.ForeColor = "16711680"
Case "her" 'Pink
Outjoin1.ForeColor = "4612615935"
Case "she" 'Pink
Outjoin1.ForeColor = "12615935"
Case Else
Outjoin1.ForeColor = "0"
End Select
End Sub
The code below works but changes the field colors in every .
Can anybody spot the glitch or come up with an answer?
Thanks
Gordon
Private Sub Outjoin1_Change()
Select Case Outjoin1.Value
Case "his" 'Blue
Outjoin1.ForeColor = "16711680"
Case "He" 'Blue
Outjoin1.ForeColor = "16711680"
Case "her" 'Pink
Outjoin1.ForeColor = "4612615935"
Case "she" 'Pink
Outjoin1.ForeColor = "12615935"
Case Else
Outjoin1.ForeColor = "0"
End Select
End Sub