Crystal runs slow with IF THEN

I added a parameter for a Sales Order Number to one of my reports and
added the following IF THEN statement to my report using the Record
Select.



IF {?Customer} ="" THEN



{Customer.CustID} = {?Customer}

AND

{ShipHead.ShipDate} = {?Date}

AND

{ShipHead.ReadyToInvoice} = yes



ELSE

{Customer.CustID} = {?Customer}

AND

{ShipHead.ShipDate} = {?Date}

AND

{ShipHead.ReadyToInvoice} = yes

AND

{OrderHed.OrderNum} = {@ConvertOrder}





The report now take 4 to 5 minutes to run regardless if I input a Sales
Order Number or leave it blank. If I remove the IF THEN statement and
use either formula the report run in 5 to 10 seconds.

Besides the time delay the report is working fine and everything seems
point the problem with me checking for the blank value.



Is anyone doing anything similar to this?



Thanks



Rich Wagner



[Non-text portions of this message have been removed]