E
ExcelMan
I have two text boxes - let's call them txtBox1 and txtBox2 -- on a
form that both have a fairly complex DLookup function as their
controlsource.
I want the back color on txtBox2 to be pale yellow when it has a higher
value than txtBox1. So I set up an Expression Condition as:
[txtBox2] > [txtBox1]
Problem is, that it only updates after I click on txtBox2, not when
other controls on the form cause the value of txtBox2 to update to an
amount greater than txtBox1. Funny thing, both controls are meant for
display only and are enabled, but locked. However, when the
conditional formatting is active, I can actually click on the text
boxes and they take the focus.
I've tried using code to Requery the txtBox2 when the other controls
change, but that is way too expensive and doesn't even seem to work
properly.
Any ideas?
Thanks.
form that both have a fairly complex DLookup function as their
controlsource.
I want the back color on txtBox2 to be pale yellow when it has a higher
value than txtBox1. So I set up an Expression Condition as:
[txtBox2] > [txtBox1]
Problem is, that it only updates after I click on txtBox2, not when
other controls on the form cause the value of txtBox2 to update to an
amount greater than txtBox1. Funny thing, both controls are meant for
display only and are enabled, but locked. However, when the
conditional formatting is active, I can actually click on the text
boxes and they take the focus.
I've tried using code to Requery the txtBox2 when the other controls
change, but that is way too expensive and doesn't even seem to work
properly.
Any ideas?
Thanks.