locked
Conditional Format Question with text box on Report RRS feed

  • Question

  • I have a text box on my report that has a Format of percentage [tbPercentage], I have another text box on my report [tbTotal]

    I want the tbTotal to be Black text when tbPercentage is showing 100.00% else it will be light grey

    Thanks for any help.....Bob


    xxx

    Wednesday, April 6, 2016 12:35 AM

Answers

  • Open the report in design view and select tbTotal

    Set the Fore Color property to light grey. This will be the default.

    On the Format tab of the ribbon, click Conditional Formatting, then New Rule.

    Select 'Expression is' from the first dropdown.

    In the box next to it, enter the expression   [tbPercentage]=1    (since 100% = 1)

    Select black from the Font Color dropdown.

    Click OK, then OK again.


    Regards, Hans Vogelaar (http://www.eileenslounge.com)

    • Marked as answer by TurnipOrange Wednesday, April 6, 2016 9:15 PM
    Wednesday, April 6, 2016 6:02 AM

All replies

  • Open the report in design view and select tbTotal

    Set the Fore Color property to light grey. This will be the default.

    On the Format tab of the ribbon, click Conditional Formatting, then New Rule.

    Select 'Expression is' from the first dropdown.

    In the box next to it, enter the expression   [tbPercentage]=1    (since 100% = 1)

    Select black from the Font Color dropdown.

    Click OK, then OK again.


    Regards, Hans Vogelaar (http://www.eileenslounge.com)

    • Marked as answer by TurnipOrange Wednesday, April 6, 2016 9:15 PM
    Wednesday, April 6, 2016 6:02 AM
  • Thanks Han I had 100 not 1 :)

    xxx

    Wednesday, April 6, 2016 9:16 PM