To conditionally format fields using the Highlighting Expert

  1. To open the Highlighting Expert, right-click the field you want to format and select Highlighting Expert from the shortcut menu.

    When opened, the expert is set to format the field that is currently selected on the report.

  2. In the Highlighting Expert, click New to create a new conditional formula with default settings.


  3. In the Item editor area, click the Value of list and select the field that you want to base your condition on.

    The field chosen here is the field upon which your condition is based; this field need not be the field that is being formatted. To create a condition based on the values of the field that is being formatted, select "this field" from the list. To base your condition on a different report field, select it from the list of available fields.

  4. Select a comparison from the second list (is equal to, is less than, and so on).

    This comparative statement works as the operator in the conditional formula created by the expert.

  5. Complete the condition by entering the desired value in the box.
  6. In the Font style, Font color, Background, and Border lists, specify the formatting changes that you want to apply to the selected field when your condition is met.
  7. Repeat steps 3 and 4 if you want to apply multiple highlighting conditions to the selected field.
  8. Use the Priority arrows to specify the order in which you want Crystal Reports to apply your conditions. For details, see Setting highlighting priorities.
  9. Click OK to return to your report.