you should try to "test" the "content" of the textbox and not it's color or anything.
color can be set when a certain "condition" occurs.
use conditional format.
This is valid syntax but not valid semantics. Your actual expression compiles but here is what it actually says:
If (your conditions are met) THEN [sample].Forecolor = ( 858083 AND ( [sample].FontWeight = 800 )
... which is to say set the forecolor to the logical (bitwise) AND of the bits of number 858083 and the bits of the truth value of the relational expression FontWeight = 800. FontWeight either IS or IS NOT equal to 800, so the sub-expression is either TRUE or FALSE. Therefore ... 858083 AND TRUE will equal 858083, whereas 858083 AND FALSE will equal 0, which is the same as Forecolor = vbBlack.
The correct way to implement changes to TWO properties of a single control follows the example below.
Code:
IF ....conditions THEN
control.property1 = value1 'pick the correct property, of course
control.property2 = value2 'individually set the selected property
END IF