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'.

Jeff SAsked:
Who is Participating?
wykabryanConnect With a Mentor Commented:
Ok.. why do you have two parameters.  What make them different?  

You could create one parameter that has 3 different values.  
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.
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.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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}
Jeff SAuthor Commented:
In my sql, I have set up filters as such:

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

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

I am confused on what you mean wykabryan.
Jeff SAuthor Commented:
Went the route of working out more in SQL, but your help was needed. Thanks
All Courses

From novice to tech pro — start learning today.