Page 1 of 1

Print when string not found

Posted: Mon Jan 05, 2009 3:31 pm
by sherry
I want to create an expression in a custom report field to do this...

Print Field1 when a certain text string is NOT found in Field2.

I can't figure out how to do it! Can anybody help?

Thanks so much.
Sherry

Posted: Mon Jan 05, 2009 5:55 pm
by Zorak
Here is something that should work in the "Print When" for you

The Print When for field 1 would be:

Code: Select all

not "needle" $ haystack
Where needle is the string you are searching for and haystack is field 2.

Posted: Mon Jan 05, 2009 6:32 pm
by sherry
Easy! Thank you.