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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select expert using "contains" in the formula 2

Status
Not open for further replies.

JCook23

Technical User
May 19, 2004
39
US
CR10.0
SqlServer

I have a text field that may contain the word 'Expedite'. It is a small text field, but I want the report to only give records where poitem.fdescript contains 'Expedite'. How do I do this?

Thanks,

Jeff C.
 
Try:

instr({poitem.fdescript},"Expedite") <> 0

-LB
 
Thanks LB, that was exactly what I needed!
 
lbass,

Once again, your postings have saved the day - this formula is invaluable. I don't know why crystal can't just come up with a "contains" as an option in select expert.

LK
 
The only issue I would point out with lbass's solution is that it will not get passed through to the SQL statement.
Your better off using the the like pattern operator:

{poitem.fdescript} like "*Expedite*"

This will get passed down into the SQL statement making your report more efficient.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top