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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crSingleLine Suppress Formula help 2

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
US
I am trying to get this formula to work and can not seem to make it do the top line right. No matter what Grouping equals, I am getting the line. I want it to suppress when Grouping equals 'None', yet its still printing.

Code:
IF {?SUPPRESSDETAIL} = FALSE AND {Data.Grouping} = 'None' then
    crNoLine
ELSE
    crSingleLine
 
Does {Data.Grouping} have spaces and are you sure case is right

try

IF {?SUPPRESSDETAIL} = FALSE AND uppercase(trim({Data.Grouping})) = 'NONE' then
crNoLine
ELSE
crSingleLine

Ian
 
Try putting both of the fields you are testing against on the report and check what values are being returned.

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
I ended up removing the '{?SUPPRESSDETAIL} = FALSE AND' since I had that already on the group footer suppression and it worked. Thanks for looking and the input!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top