Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Section Expert, Suppress, working opposite? 1

Status
Not open for further replies.

loveyoursite

Technical User
Apr 14, 2005
100
US
CRV10 I have a report with a Review.Rating string field which contains either a blank or 6 ratings. I only want to see the records with a blank rating or a rating of 02 or a rating of 06. I could not get the select criteria to work as it would only bring back the 02 and 06 but not the blanks.

Then I tried to use a Detail, Suppress Formula of
{REVIEW.RATING} <> "02" and
{REVIEW.RATING} <> "06" and
{REVIEW.RATING} <> ""
it only brought back the 02 and 06's. If I leave the suppress formula in the report but deselect the box beside "Suppress" then the report brings back what I want.
Does anyone by any chance know why?

Thanks!
 
First check your report options (file->report options) and make sure you do not have "convert nulls to default values" checked. Then try a record selection formula like:

isnull({Review.Rating}) or
trim({Review.Rating}) = "" or
{Review.Rating} in ["02","06"]

-LB
 
Thanks so much for your response! I did not have convert nulls to default values checked in the report options. I tried your formula and it brought back every record and the rating field result was either true or false. How do I get the rating of blank, 02 or 06 to show in the result and no other results?
 
The formula belongs in the record selection formula area. Go to report->selection formula->RECORD and enter it there.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top