I have quite a number of reports that when updating to Crystal 9 from Crystal 8.5 the selection formula no longer passes to the database. The main factor seems to be if there is an "or" in part of the selection formula.
Here is an example:
{sold.getTime} in datediff("s", Datetime(1970,01,01,0,0,0), datetime(currentdate(),time(0,0,0))) to datediff("s", Datetime(1970,01,01,0,0,0), datetime(currentdate(),time(23,59,59)) )
and
(isnull({order.contract_id}) or {order.contract_id} <> {?RestrictedCos}) and not ({order_item.order_item_id} in 38073 to 38096)
This worked perfectly fine in Crystal 8.5 but now the second half (contract and order item selection) does not pass to the SQL at all!
I have tried rearranging it many different ways but no luck. Either of the two or's individually will pass, it is only when I make it an or that it fails.
Any ideas? One note, I do not have the Add Command option with the sybase drivers.
Lisa
Here is an example:
{sold.getTime} in datediff("s", Datetime(1970,01,01,0,0,0), datetime(currentdate(),time(0,0,0))) to datediff("s", Datetime(1970,01,01,0,0,0), datetime(currentdate(),time(23,59,59)) )
and
(isnull({order.contract_id}) or {order.contract_id} <> {?RestrictedCos}) and not ({order_item.order_item_id} in 38073 to 38096)
This worked perfectly fine in Crystal 8.5 but now the second half (contract and order item selection) does not pass to the SQL at all!
I have tried rearranging it many different ways but no luck. Either of the two or's individually will pass, it is only when I make it an or that it fails.
Any ideas? One note, I do not have the Add Command option with the sybase drivers.
Lisa