Link to home
Start Free TrialLog in
Avatar of Genius123
Genius123Flag for United States of America

asked on

Crystal Reports Filter

Hello,

I have a filter that uses one parameter, and few other criteria.  Here it is:

Local NumberVar Index;
Local BooleanVar Include := False;

For Index := 1 to UBound({?Product Type}) do
    Include := Include OR     {tblRevisions.ProductResultBDHC} LIKE '*' & {?Product Type}[Index] & '*';
Include and

{tblRevisions.Engineer} = {?Engineer} and
{tblRevisions.Engineer} <> "" and
{tblRevisions.CheckerComplete} >= {?Start Date} and
{tblRevisions.CheckerComplete} <= {?End Date} and
{tblRevisions.DrawingStage} = {?Stage}


What I also need to add to the filter is this and I'm not sure how:

if {?RD} = True
include {tblRevisions.JobNumber} > 0
else
include all {tblRevisions.JobNumber} except where {tblRevisions.JobNumber} > 90000 and < 100000

Thanks,
Joel
ASKER CERTIFIED SOLUTION
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Genius123

ASKER

Thank you.  Worked perfectly!