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

Not Like Formula 1

Status
Not open for further replies.

IceRuby

Technical User
Jan 20, 2004
85
AU
Hi

I am trying to apply a not like formula within an if statement but crystal keeps advising error.

Formula is

if {Posting Date} in [{@PeriodStartDate} to {@LastTuesdayInMth}] and {Sale Type} = [2] and not{description} like('Marginal*') then {Quantity} else 0

Crystal error states boolean required and highlights field after not(description).

thanks for your help in advance.
 
Dear IceRuby,

I think that should be:

if {Posting Date}
in {@PeriodStartDate} to {@LastTuesdayInMth}
and
{Sale Type} = 2
and
not({description} like('Marginal*'))
then {Quantity}
else 0

You must enlocse the statement that not is evaluating in parentheses. Also, I am not sure why you used [ brackets in your formula.

The above, when replaced with fields that I have passes the formula syntax checker.

Regards,

ro


Rosemary Lieberman
rosemary@microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top