Solved

Crystal Reports Multiline IF

Posted on 2011-09-17
3
447 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 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 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

622 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