Thanks for you quick reply!
{?DateType} parameter is a boolean that will return 'True' if user chooses {CustomerOrder.OrderDate} and 'False' if user chooses {CustomerOrder.DueDate} .
First part of formula works well ({?DateType} IF-THEN-ELSE validation), I parenthed it properly now, thanks.
Formula also works well combined with second part or first logical AND statement ({report_PendingOrdersByQuantity... ) alone.
Problem arrives when second part of the formula gets more complicated and needs to compare two different situations/expressions that cannot be both true. After a value of 'True' is returned from the second part of the formula, then it will be compared to first part of formula for a final 'True' value that will actually display the record.
Now, the only way for the second part of formula evaluation to work is to add a logical XOR statement provided that
T T = F
T F = T
F T = T
F F = F
The first formula I wrote is the one I want to work:
(If {?DateType} = True
Then {CustomerOrder.OrderDate} in {?StartDate} to {?EndDate}
Else {CustomerOrder.DueDate} in {?StartDate} to {?EndDate})
and
(({EstAttributes.AttributeTypeKey} = 96 and {EstAttributes.Value} = 'Y' and {report_PendingOrdersByQuantity0.goodqty}<>{CustomerOrder.QuantityOrdered})
xor
(({report_PendingOrdersByQuantity0.goodqty} > ({CustomerOrder.QuantityOrdered}*1.1)) or
({report_PendingOrdersByQuantity0.goodqty} < ({CustomerOrder.QuantityOrdered}-({CustomerOrder.QuantityOrdered}*0.1)))))
Hope this makes sense, thanks again.
Edited by RafaZa - 08 Jun 2009 at 3:05pm