Crystal Reports 10 - Suppress statement Help

I have a report with one detail band. In this detail band, I have multiple fields. This detail band needs to pull based on values entered into one specific field ...

Field Name = [Last Visit Date]

Three values that could be in this field.
'less than 2'
'2 or more'
'No detected Visit'

If the end user selects 'less than 2' only, I want the visits marked in my sql with 'less than 2' to print and suppress the '2 or more' and 'No detected Visit'.

If the end user selects '2 or more' only, I want the visits marked in my sql with '2 or more' to print and suppress the 'less than 2' and 'No detected Visit'.

LVL 7
Jeff SAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chikenheadCommented:
Typically I would set up a stored procedure that you can submit a parameter to in order to accomplish this.  When the user starts the report have them select the appropriate value from a list.
0
Jeff SAuthor Commented:
I have it set in SQL and in the third party application, the user has two checkboxs to pick from ....

__ Over 2 years
__ Under 2 years

When they select one, the records not meeting this condition need to be suppressed.
0
wykabryanCommented:
simply filter them off. You already have the parameter, and you said the column exists in the database as less than 2, no detected visit, or 2 or more.  

So go to Report> Selection Formula>Records
{?parameter} = {columnindatabase}
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Jeff SAuthor Commented:
In my sql, I have set up filters as such:

(?VISITSOVER.VALUE.U? = 0 AND ('2YRStatus' <> '2 or more')) OR
(?VISITSOVER.VALUE.U? = 1)
)
AND
(?VISITSUNDER.VALUE.U? = 0 AND '2YRStatus' <> 'less than 2')) OR
(?VISITSUNDER.VALUE.U? = 1)
)

In Crystal, I created 2 Parameters .... VISITSOVER and VISITSUNDER.

I am confused on what you mean wykabryan.
0
wykabryanCommented:
Ok.. why do you have two parameters.  What make them different?  

You could create one parameter that has 3 different values.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeff SAuthor Commented:
Went the route of working out more in SQL, but your help was needed. Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.