Here's an image showing this simple form with simple "Conditional Formatting" specifications to the selected text box.
gblRetID is a global string variable that is defaulted to the name of the current user. When the user invokes a function that displays the form you see in the image above, the code:
Code:
Option Compare Database
Option Explicit
Private Sub Form_Click()
gblRetID = Me.retID
End Sub
runs when the user selects an entry in the form's list of choices, namely alternative envelope return addresses. I've verified the value of gblRetID when the OnClick event runs but the conditional formatting does not take affect. I "hard-coded" a string in the conditional formatting expression and the conditional formatting specification works fine, it's only when the use of [gblRetID] is used that the "match" does not take affect. (Me.retID is a reference to the value to which the TB is bound.)
I don't know how much simpler this case could get, yet I'm not seeing what the problem is.
Ideas? (Be gentle now)
Bill