Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Reports Multiline IF

Posted on 2011-09-17
3
Medium Priority
?
450 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 101

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 101

Accepted Solution

by:
mlmcc earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

916 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