Skip to Content
0
Former Member
Jun 24, 2014 at 03:22 PM

Convert Sub-Report to Crystal Command

26 Views

I'm attempting to convert a sub-report and a shared variable from the report to a Command.

Can someone help with the conversion


Here is the part of the Crystal SQL I can't convert

This is within last7days >>> (ORDER_PROC.ORDER_INST>={ts '2014-06-18 00:00:00'} AND ORDER_PROC.ORDER_INST<{ts '2014-06-25 00:00:00'})

AND ((ORDER_PROC.RESULT_TIME IS NULL ) OR (ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST))
ORDER BY ORDER_PROC.ORDER_INST

Here is the code for the shared variable

if (not isnull({ORDER_PROC_3.FREQ_UNSCHEDULED_C}) and {ORDER_PROC_3.FREQ_UNSCHEDULED_C}=1 ) then {ORDER_PROC.ORDER_INST}

else {ORDER_PROC.PROC_START_TIME}


Thanks

Steve