Greetings,
I am trying to construct an Alert for one of my reports. I am using Crystal XI connecting to an SQL DB. The report is constructed such that Item ID's, Detail Records, are returned in the detail section of the report grouped by their respective Order Number, Order Header records. The formula I entered into the Alert Condition is stated below.
{ORDRHDR.SOLDTOCUSTID} = "VRTX" and
{ORDRHDR.CLIENTDIVISION} = "GPS" and
{ORDRHDR.CLIENTGLACCT} = "11" and
Not({ORDRDET.ITEMID} in ["GPS-ENV-MED","GPS-ENV-LRG"])
My desire is ultimately to identify only those orders which meet the first three criteria and that do not contain Item ID's, "GPS-ENV-MED" or "GPS-ENV-LRG", as Detail records of the order. I know this is written incorrectly as the Alert will return an order meeting the first three criteria and the Order Details of such an order yet simply minus the Detail records of either "GPS-ENV-MED" or "GPS-ENV-LRG" even when "GPS-ENV-MED" or "GPS-ENV-LRG" are a part of the detail records of an order.
If you can advise me on how to properly write such a formula I would greatly appreciate it!
Regards,
James Pstrzoch
I am trying to construct an Alert for one of my reports. I am using Crystal XI connecting to an SQL DB. The report is constructed such that Item ID's, Detail Records, are returned in the detail section of the report grouped by their respective Order Number, Order Header records. The formula I entered into the Alert Condition is stated below.
{ORDRHDR.SOLDTOCUSTID} = "VRTX" and
{ORDRHDR.CLIENTDIVISION} = "GPS" and
{ORDRHDR.CLIENTGLACCT} = "11" and
Not({ORDRDET.ITEMID} in ["GPS-ENV-MED","GPS-ENV-LRG"])
My desire is ultimately to identify only those orders which meet the first three criteria and that do not contain Item ID's, "GPS-ENV-MED" or "GPS-ENV-LRG", as Detail records of the order. I know this is written incorrectly as the Alert will return an order meeting the first three criteria and the Order Details of such an order yet simply minus the Detail records of either "GPS-ENV-MED" or "GPS-ENV-LRG" even when "GPS-ENV-MED" or "GPS-ENV-LRG" are a part of the detail records of an order.
If you can advise me on how to properly write such a formula I would greatly appreciate it!
Regards,
James Pstrzoch