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

Syntax Question - Not Like

Status
Not open for further replies.

bigmelon

MIS
Sep 25, 2003
114
US
How do you say the equivalent to Not Like in a formula? The formula i want is as follows:

if {Surgproc.Proc_Type} like '*rima*' and {Surgproc.Proc_Type} not like'*lima*' then "Right IMA" else ""

When I put the not in there is says the statement is missing the then statement but without it i have no errors.

Thanks in advance,
Jeremy
 
The Not comes before the entire condition:

if ({Surgproc.Proc_Type} like '*rima*') and not ({Surgproc.Proc_Type} like'*lima*') then
"Right IMA"
else
""

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top