I wish to format Foreground in a Text only field. I have done it many times using Values but can't get it going for Text. eg. say a field containing names = AN60, I might want the forecolor to be Red.
I have tried something like this;
If Me.MyDateField.XXXX > AN60 Then
Me. MyDateField.ForeColor = vbRed
Else
Me. MyDateField.ForeColor = vbBlue
End If
If I want it based on values I have substituted the XXX's with Value and it will work ok, but for text I obviously need something different.
I have tried something like this;
If Me.MyDateField.XXXX > AN60 Then
Me. MyDateField.ForeColor = vbRed
Else
Me. MyDateField.ForeColor = vbBlue
End If
If I want it based on values I have substituted the XXX's with Value and it will work ok, but for text I obviously need something different.