onyxtacular
IS-IT--Management
HI Everyone,
Currently the user types the parameters into the report manually. I want to convert the report to gather the data from the fields of the .csv file. I've added to the .csv to crystal report what I don't understand is exactly how to make it read the values in the place of the parameters.
Here's what is currently in Crystal:
{Order_Master.STATUS_10} < "4" and
{Order_Master.TYPE_10} = "MS" and
{Order_Master.CUSORD_10} = {??salesorders}
Here I input the 11111..222222 and 1234567..2345678 into the ??salesorders dialog and this is what crystal sends to the server.
Onyx
SELECT "Order_Master"."ORDNUM_10", "Order_Master"."TYPE_10", "Order_Master"."STATUS_10", "Order_Master"."CUSORD_10"
FROM "Onyx"."dbo"."Order_Master" "Order_Master"
WHERE "Order_Master"."STATUS_10"<'4' AND (("Order_Master"."CUSORD_10">='11111' AND "Order_Master"."CUSORD_10"<='222222') OR ("Order_Master"."CUSORD_10">='1234567' AND "Order_Master"."CUSORD_10"<='2345678')) AND "Order_Master"."TYPE_10"='MS'
any help is appreciated. I've been round and round the net trying to find this. I'm sure it is something pretty basic but I have very limited knowledge of crystal/sql so find just the right search is proving to be most difficult.
Thanks
Currently the user types the parameters into the report manually. I want to convert the report to gather the data from the fields of the .csv file. I've added to the .csv to crystal report what I don't understand is exactly how to make it read the values in the place of the parameters.
Here's what is currently in Crystal:
{Order_Master.STATUS_10} < "4" and
{Order_Master.TYPE_10} = "MS" and
{Order_Master.CUSORD_10} = {??salesorders}
Here I input the 11111..222222 and 1234567..2345678 into the ??salesorders dialog and this is what crystal sends to the server.
Onyx
SELECT "Order_Master"."ORDNUM_10", "Order_Master"."TYPE_10", "Order_Master"."STATUS_10", "Order_Master"."CUSORD_10"
FROM "Onyx"."dbo"."Order_Master" "Order_Master"
WHERE "Order_Master"."STATUS_10"<'4' AND (("Order_Master"."CUSORD_10">='11111' AND "Order_Master"."CUSORD_10"<='222222') OR ("Order_Master"."CUSORD_10">='1234567' AND "Order_Master"."CUSORD_10"<='2345678')) AND "Order_Master"."TYPE_10"='MS'
any help is appreciated. I've been round and round the net trying to find this. I'm sure it is something pretty basic but I have very limited knowledge of crystal/sql so find just the right search is proving to be most difficult.
Thanks