Solved

Crystal Reports Multiline IF

Posted on 2011-09-17
3
441 Views
Last Modified: 2012-08-14
I keep getting an error "the remaining text does not appear to be part of the formula." I know I'm missing something simple. Thanks
IF {@Print FED} = "X" THEN TRUE
IF {@Print FMED} = "X" THEN TRUE
IF {@Print FSOC} = "X" THEN TRUE
IF {@Print FUTA} = "X" THEN TRUE
IF {@Print SUTA} = "X" THEN TRUE
ELSE FALSE

Open in new window

0
Comment
Question by:dk04
  • 2
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 36555254
Try it this way

IF {@Print FED} = "X" THEN TRUE
ELSE IF {@Print FMED} = "X" THEN TRUE
ELSE IF {@Print FSOC} = "X" THEN TRUE
ELSE IF {@Print FUTA} = "X" THEN TRUE
ELSE IF {@Print SUTA} = "X" THEN TRUE
ELSE FALSE

mlmcc
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36555257
These also work

IF {@Print FED} = "X" THEN TRUE;
IF {@Print FMED} = "X" THEN TRUE;
IF {@Print FSOC} = "X" THEN TRUE;
IF {@Print FUTA} = "X" THEN TRUE;
IF {@Print SUTA} = "X" THEN TRUE
ELSE FALSE

A third way

IF {@Print FED} = "X" OR {@Print FMED} = "X" OR {@Print FSOC} = "X"
   OR {@Print FUTA} = "X" OR {@Print SUTA} = "X" THEN TRUE
ELSE FALSE

mlmcc
0
 

Author Closing Comment

by:dk04
ID: 36560411
All of them worked without errors but the first way in the second post brought back the information I needed.

Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question