Ok the conditional formatting is what we want. However, we set the field to
'is equal to' & the character to an 'a' (lower case) BUT it converts upper
& lower case a's. What are we missing? TIA
Yes, but if you have Access 2000 or newer, it would be easier to use the
built-in Conditional Formatting. Open the report in design view, right click
the control, and choose Conditional Formatting. Make the desired settings.
In code, use the Format event for the report section the control is in. You
would then use code similar to:
Select Case Me.txtMyTextbox
Case "a"
Me.txtMyTextbox.ForeColor = vbBlue
Case "w"
Me.txtMyTextbox.ForeColor = vbRed
Case Else
Me.txtMyTextbox.ForeColor = vbBlack
End Select
Wayne Morgan
MS Access MVP