I'm using CR 8.5 and am having trouble writing a formula for a parameter. I'd like to give the user the ability to run the report for a particular record or for all records.
Here is the standard formula:
{purchase_order_segment_ship.status_cd} in ["C", "O"] and
{purchase_order.po_number} = {?Purchase Order Number}
This requires the user to enter a Purchase Order Number, but I want it to be optional. I tried putting a default value of 0, and then testing the expression like:
{purchase_order_segment_ship.status_cd} in ["C", "O"]
If {?Purchase Order Number} <> 0 Then
and {purchase_order.po_number} = {?Purchase Order Number}
This doesn't work, and CR doesn't let me put the "and" on the line under the IF Then. It will only accept the formula if I put the "and" before the IF THEN, but then it doesn't work.
Can someone shed some light???
Thanks is advance,
Rob
Here is the standard formula:
{purchase_order_segment_ship.status_cd} in ["C", "O"] and
{purchase_order.po_number} = {?Purchase Order Number}
This requires the user to enter a Purchase Order Number, but I want it to be optional. I tried putting a default value of 0, and then testing the expression like:
{purchase_order_segment_ship.status_cd} in ["C", "O"]
If {?Purchase Order Number} <> 0 Then
and {purchase_order.po_number} = {?Purchase Order Number}
This doesn't work, and CR doesn't let me put the "and" on the line under the IF Then. It will only accept the formula if I put the "and" before the IF THEN, but then it doesn't work.
Can someone shed some light???
Thanks is advance,
Rob