Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple Like statements in crystal 2008

Status
Not open for further replies.

sap1958

Technical User
Oct 22, 2009
138
US
I am trying to avoid hardcoding a series of job titles as follows
chair
chair-pediatrics
associate director
assistant director
director
vp
vice president

You can see the various scenarios here. Ay ideas for a like statement that I can use in record select to get these and similar job titles without hardcoding. I have several more that are similar to these mentioned.

 
Hi,
How are these even remotely similar?

try something like:

{Table.Title} LIKE ["*chair*","*director*","*vp*"]

It is case-sensitive so if mixed cases are involved you may need to use ( but only if needed, it can slow things down):

LowerCase({Table.Title} LIKE ["*chair*","*director*","*vp*"]



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top