I have a report doing some strange things regarding evaluating a zero or null value. The report uses a left outer join to join an inventory table to a bill of materials (BOM) table. There are some records that have a matching BOM record, and some that don't. I have a boolean parameter ({?Zero_Quantity}) that asks the user if they want to show records with BOM quantities equal to 0.
Because of the outer join, I need to suppress records with null values as well as 0 values. So, I'm conditionally suppressing the detail record using the formula below:
{?Zero_Quantity}=False
and
(
{BOM.Quantity}=0
or
isnull({BOM.Quantity})
)
This formula only suppresses the BOM.Quantity = 0, effectively ignoring the isnull evaluation. When I change the formula to the following, everything works:
{?Zero_Quantity}=False
and
(
isnull({BOM.Quantity})
or
{BOM.Quantity}=0
)
Shouldn't the two formulas work exactly the same?
Because of the outer join, I need to suppress records with null values as well as 0 values. So, I'm conditionally suppressing the detail record using the formula below:
{?Zero_Quantity}=False
and
(
{BOM.Quantity}=0
or
isnull({BOM.Quantity})
)
This formula only suppresses the BOM.Quantity = 0, effectively ignoring the isnull evaluation. When I change the formula to the following, everything works:
{?Zero_Quantity}=False
and
(
isnull({BOM.Quantity})
or
{BOM.Quantity}=0
)
Shouldn't the two formulas work exactly the same?