Malfist
Malfist

Reputation: 31785

Crystal Reports if-then-else selection based on parameter

I have this crystal report, and I want to be able to use it to display every person in the table or display only those who owe money.

The parameter is called displayAll and is a boolean. Basically I want this

if displayAll Then
   Show every person
else
   Show only When Balance is below 0

How can I do this?

Upvotes: 1

Views: 4062

Answers (1)

SarekOfVulcan
SarekOfVulcan

Reputation: 1358

In your Record Selection Formula, say something like:

If {?DisplayAll} Then
    True
Else
    {Data.Balance} < 0;

Upvotes: 2

Related Questions