Solved

Crystal Reports Multiline IF

Posted on 2011-09-17
3
445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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. …
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

739 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