hi Steve,
you'd need to give us some info...what database are you using? Commands use syntax native to your database.
are you trying to get the last 7 days instead of a hard coded date range?
the following may take care of the date range and the null should you be using sql server..not sure though as i don't have the db to check against. i would suggest that you search a forum for your database for the correct syntax though.
WHERE
DATEDIFF(DAY,ORDER_PROC.ORDER_INST, GETDATE())<=7
AND
(
ISNULL(ORDER_PROC.RESULT_TIME)
OR
ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST
)
ORDER BY
ORDER_PROC.ORDER_INST
also you can't use a Shared Variable directly in a command object but you can certainly pass it in via a sub-report link. what is the variable supposed to do in the command? suggest that you create a Parameter in the command object and then link the subreport from your main report to the command parameter.
cheers,
jamie