Need to set a parameter inside a crystal report formula

I have a parameter in a crystal report for the end user to enter a number.  I want to pass this parameter to a formula that will be

if parameter > 0 then (parameter# * 35) + other field
else other field

I cannot figure out how to pass the parameter into the formula.
Tammi RushAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this

If {?ParameterName} > 0 then
     {?ParameterName} * 35 + {OtherField}

Open in new window

To get the parameter into the formula just select it from the field list

Tammi RushAuthor Commented:
First it said I needed a string for the 0 so I put it in "".  

If {?Skids} > "0" then
{?Skids} * 35 + {SHIPMENT_BOL.WEIGHT}

then it tells me a number or currency is require at the parameter after the then
Why is Skids a string and not a numeric parameter?

Use Val to convert it to a number



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tammi RushAuthor Commented:
DUH!  It's those little things that will get you every time.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.