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

Crystal XI "NOT LIKE" function/formula

Status
Not open for further replies.

pungigis

Programmer
Dec 5, 2007
71
US
select *
from accumulator
where accumtype = 'Maxout' and
(description not like '%OON%' and
description not like '%In-Net%')

I need to incorporate the above SQL criteria into a Crystal XI report formula but it is NOT working, any ideas?? Below is my Crystal formula.

if {accumulator.accumtype} = 'Maxout' and
(not("*OON*" in {accumulator.description}) and
not("*In-Net*"in {accumulator.description}))
then {claimdetail.coinsuranceamt}
 
Hi,
CR also uses LIKE as an operator so try:
Code:
if {accumulator.accumtype} = 'Maxout' and
(
not({accumulator.description} like "*OON*" )
 and 
not({accumulator.description} like "*In-Net*" ) 
)
then {claimdetail.coinsuranceamt}

If any NULLs are possible, test for them first.






[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