I have three input parameters and record selection formula looked like this:
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate})
It worked fine until I inserted control structure and changed formula on:
if {?Account_id} in [20,21] then
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate}) and
{ORDER_PROC_V.ORDER_TYPE} in ["HQ", "REGULAR"]
else
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate})
It runs forever. What couls be a problem?
Please help.Thanks.
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate})
It worked fine until I inserted control structure and changed formula on:
if {?Account_id} in [20,21] then
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate}) and
{ORDER_PROC_V.ORDER_TYPE} in ["HQ", "REGULAR"]
else
{ORDER_PROC_V.ACCOUNT_ID} = {?Account_ID} and
{ORDER_PROC_V.SHIP_DATE} >= {?FromDate} and
{ORDER_PROC_V.SHIP_DATE} < DateAdd("d", 1, {?ToDate})
It runs forever. What couls be a problem?
Please help.Thanks.