I have a parameter in my crystal report that gives me the caption of a field. This parameter is call @PackDate. I can see that this parameter is treat in my stored procedure. But I can't understand where it is assign. Here is each line where the field @PackDate appear.
...
DECLARE
@PackDate DateType
...
BEGIN
FETCH PackingSlip1Crs INTO
@PackDate
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
I would also like to know if it's possible to tell in the stored procedure that "if the country is "Canada" take the data from the Tbl1 and if the country is "USA" take the data from the Tbl2"?
Thank you in advance
...
DECLARE
@PackDate DateType
...
BEGIN
FETCH PackingSlip1Crs INTO
@PackDate
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
INSERT INTO @ReportSet (...pack_date...) VALUES (...@PackDate...)
...
I would also like to know if it's possible to tell in the stored procedure that "if the country is "Canada" take the data from the Tbl1 and if the country is "USA" take the data from the Tbl2"?
Thank you in advance