LadyAmpherion
Technical User
Here's my issue:
When I use "FORMULA A", any record that does not have an entry in the PODETL Table, no longer shows up on my Report.
When I use "FORMULA B", all my records show on my report, but sometimes have the wrong value ...
All my Values on this Report are either Calculated Values or Come from the JOBDETL Table, EXCEPT TWO VALUES. One Value is coming from the JOB Table, with no issues. The other Value is the one that I want to pull in from the PODETL Table, when the ACTCOST Value EXISTS AND is NULL. The problem is I don't know how to put it in the formula correctly.
Thanks again for your thoughts and insights.
//********************************************
//* FORMULA A *
//********************************************
if isnull({JOBDETL.ACTCOST})
then
if isnull({PODETL.PRICE})
then
if isnull({JOBDETL.UNITCOST})
then numbervar x:=0
else numbervar x:={JOBDETL.UNITCOST}
else numbervar x:={PODETL.PRICE}
else numbervar x:={JOBDETL.ACTCOST};
{@QtyDue} * x
//********************************************
//* FORMULA B *
//********************************************
if isnull({JOBDETL.ACTCOST})
then
if isnull({JOBDETL.UNITCOST})
then numbervar x:=0
else numbervar x:={JOBDETL.UNITCOST}
else numbervar x:={JOBDETL.ACTCOST};
{@QtyDue} * x
When I use "FORMULA A", any record that does not have an entry in the PODETL Table, no longer shows up on my Report.
When I use "FORMULA B", all my records show on my report, but sometimes have the wrong value ...
All my Values on this Report are either Calculated Values or Come from the JOBDETL Table, EXCEPT TWO VALUES. One Value is coming from the JOB Table, with no issues. The other Value is the one that I want to pull in from the PODETL Table, when the ACTCOST Value EXISTS AND is NULL. The problem is I don't know how to put it in the formula correctly.
Thanks again for your thoughts and insights.
//********************************************
//* FORMULA A *
//********************************************
if isnull({JOBDETL.ACTCOST})
then
if isnull({PODETL.PRICE})
then
if isnull({JOBDETL.UNITCOST})
then numbervar x:=0
else numbervar x:={JOBDETL.UNITCOST}
else numbervar x:={PODETL.PRICE}
else numbervar x:={JOBDETL.ACTCOST};
{@QtyDue} * x
//********************************************
//* FORMULA B *
//********************************************
if isnull({JOBDETL.ACTCOST})
then
if isnull({JOBDETL.UNITCOST})
then numbervar x:=0
else numbervar x:={JOBDETL.UNITCOST}
else numbervar x:={JOBDETL.ACTCOST};
{@QtyDue} * x