If you mean if a field is conditionally suppressed then change the color of another field, you could. Just use the same criteria you used to conditionally suppress the first field and use it in your formula to conditionally color the background of the second field. For example, let's say you have suppressed {table.EmplID} by entering the following formula in the x+2 area for field suppression:
{table.EmplID} in 123 to 456
If you want to change the color of {table.location} for rows that have this suppressed field, then right click on {table.location}->change border->background->X+2 and enter:
if {table.EmplID} in 123 to 456 then cryellow else crnocolor
I don't think Crystal has any mechanism for telling you which fields are suppressed, short of looking at the suppression section. Moreover, tests that occur at the same stage in the logic cycle cannot refer to each other--that's why you can't sum sums or suppress blank subreports, at least not directly.
You need to follow lbass's advice, repeat the same test that does the suppression. Or else turn the test into a formula field and test it both places.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.