You can conditionally select borders based on conditions that occur in your report. For example, you can choose to display a red border if the sum is negative, a black border if positive, or no border at all.
You can set border conditions using the object inspector in the designer. For more on this topic, see the Conditional Formatting section.