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

suppressing a field with like??

Status
Not open for further replies.

jorg32

Programmer
Jul 10, 2003
57
0
0
BE
Hi,

Is it possible to suppress a field when it find just a part of a word or phrase?

eg : article = '123456_OMS'
--> suppress when article ended with '_OMS' or suppress when '456'

thanks for helping me.

JM
 
I'm no expert - and have no idea if there is any "like" statement. But try using instr to search for your string -- if it is not found, the function returns zero.
 
For your conditional suprression formula you can use:

if {article} like "*OMS" then true else
if {article.field} like" *456*" then true else
false

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top