Link to home
Create AccountLog in
Avatar of Becky Edwards
Becky EdwardsFlag for United States of America

asked on

Want to include data that starts with a specific number

I have a field that I want crystal to evaluate, and if the field starts with the number 9, then I want to include that data.  I know where to put this code - in the section expert under suppression, I just don't know how to say it in crystal language.  Below is my attempt which did not work.  Please help.

and(totext({CLARITY_EAP.PROC_CODE}) like "9")
ASKER CERTIFIED SOLUTION
Avatar of nap0leon
nap0leon

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Becky Edwards

ASKER

Wow - that worked!!! Thanks!
Avatar of Mike McCracken
Mike McCracken

You could also use

and (totext({CLARITY_EAP.PROC_CODE}) StartsWith "9")

or

and (Left(totext({CLARITY_EAP.PROC_CODE}),1) = "9")

mlmcc