A
Allan Murphy
In the On Format event of the Detail section of the report enter the
following code
if me!control_name = my_value then
me!control_name.backcolor = the colour value
me!control_name.fore = the colour value
else
me!control_name.backcolor = the default colour value
me!control_name.fore = the default colour value
end if
You need the else statement to reset the control_name fore and back colours
otherwise you will end up with the incorrect colours for a control
that does not meet your criteria.
Allan
following code
if me!control_name = my_value then
me!control_name.backcolor = the colour value
me!control_name.fore = the colour value
else
me!control_name.backcolor = the default colour value
me!control_name.fore = the default colour value
end if
You need the else statement to reset the control_name fore and back colours
otherwise you will end up with the incorrect colours for a control
that does not meet your criteria.
Allan