D
Dale Fye
What do you mean "it still does not work"?
My guess is that the expression you are using for the backcolor is never
evaluating to true. Or, you might need to use a different
FormatCondition(#).
Did you get an error when you typed that line and hit enter?
Was the report in design view at the time? It needs to be.
Do you already have a condional format set for that control? If not, you
must first define a conditional format for the control. I chose to set it to
an expression that would always evaluate to True but if you are using this
for alternate row stuff, then you can use whatever expression you were using
for that. Once you have created that condition, then you should be able to
use that line of code to set the backcolor to the appropriate value.
Is the textboxes control name actually "personnel_2008" or is that the
control source for the textbox (or both).
Did you save the report after running that line
My guess is that the expression you are using for the backcolor is never
evaluating to true. Or, you might need to use a different
FormatCondition(#).
Did you get an error when you typed that line and hit enter?
Was the report in design view at the time? It needs to be.
Do you already have a condional format set for that control? If not, you
must first define a conditional format for the control. I chose to set it to
an expression that would always evaluate to True but if you are using this
for alternate row stuff, then you can use whatever expression you were using
for that. Once you have created that condition, then you should be able to
use that line of code to set the backcolor to the appropriate value.
Is the textboxes control name actually "personnel_2008" or is that the
control source for the textbox (or both).
Did you save the report after running that line