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

Parameter values

Status
Not open for further replies.

Dukester0122

IS-IT--Management
Mar 18, 2003
587
US
I'm trying to create a parameter that users could choose different options for example:

Price = Cost
Price > Cost
Price < Cost

But since I'm also creating formulas for each parameter, how do I include both in one parameter.
 
I've created a parameter with the following values:
A - Unit Price = Unit Cost
B - Unit Price > Unit Cost
C - Unit Price < Unit Cost

If a user chooses A only documents with UP=UC would show up. Do I need to create separate formulas for each?
 
Try:

if {?parm} = "A" then
{@unitprice} = {@unitcost} else
if {?parm} = "B" then
{@unitprice} > {@unitcost} else
if {?parm} = "C" then
{@unitprice} < {@unitcost}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top