Hi,
I have a simple Crystal Report that prints stickers. Input are document number and number of stickers to print.
Show SQL Query in Crystal Report have the following:
SQL
select
row_number() over (order by id) as LabelNumber
from
sysobjects
SQL
SELECT "_CT_PF_OMOR"."DocNum", "_CT_PF_OMOR"."U_ItemCode", "_CT_PF_OMOR"."U_DistNumber", "_CT_PF_OMOR"."U_Description", "_CT_PF_OMOR"."U_Revision"
FROM "TWC_PROD"."dbo"."@CT_PF_OMOR" "_CT_PF_OMOR"
WHERE "_CT_PF_OMOR"."DocNum"=10452
My record selection is:
{_CT_PF_OMOR.DocNum} = {?ProdJobNumber} AND {Command.LabelNumber} <= {?QuantityOfLabels}
If OWOR is used instead of _CT_PF_OMOR (@CT_PF_OMOR) in the SQL query, the Crystal Report will stop processing once the desired number of stickers are processed. THIS IS GOOD.
However, when _CT_PF_OMOR (@CT_PF_OMOR) is used, the Crystal Report just keep on running even if the desired number of stickers have been processed. How can I resolve this issue?
Thanks,
Noel