Crystal Reports if-then-else selection by parameter

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

The parameter is named displayAll and is boolean. Basically I want this

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

      

How can i do this?

+1


a source to share


1 answer


In your Record Selection Formula, say something like:



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

      

+2


a source







All Articles