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

x
?
Solved

LIKE operator in Crystal Reports

Posted on 2011-02-14
5
Medium Priority
?
1,104 Views
Last Modified: 2012-05-11
Hello,
Quick question: I am trying to use LIKE operator in my Operation field.
Operation - number value
So I want to Supress if Operation has value '9' in it.
I am using inside Format Editor --> Supress --> X2 box for Formula

thank you
0
Comment
Question by:Palmer_Admin
  • 2
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 34891418
You could try

{YourField} LIKE "*9*"

ANother way would be

InStr({YourField},"9") > 0

mlmcc
0
 

Author Comment

by:Palmer_Admin
ID: 34891464
Hello MLMCC,
I get this error when I use:
{YourField} LIKE "*9*" - a string is required here

if I use the other command I get this error:
Not enough arguments have been give

thanks

0
 
LVL 12

Accepted Solution

by:
JayConverse earned 1400 total points
ID: 34892874
Sounds like you have a numeric field.  In that case,

ToText({yourfield}) like "*9*"

should do the trick
0
 

Author Comment

by:Palmer_Admin
ID: 34899304
JayConverse, is there a way to add exlude Operation "999"? the user came up to me and said that they want Operation "999"

thank you
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 34903694
ToText({yourfield}) like "*9*"
AND
ToText({yourfield}) <> "999"

mlmcc

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

972 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