CR XI
Oracle 8i using Oracle ODBC Driver
I receive a parameter from the main report for use in a subreport. No problem there. Question there is how can I incorporate the parameter into the Add Command of the subreport.
I tried to use the same parameter name but that didn't work. What I am getting is a complete union of both tables. I just want specific records from each table
Select
person_id
from
tablea
where
person_id = {?pm-parm}
union
Select
person_id
from
tableb
where
person_id = {?pm-parm};
I stil get prompted for the parameter rather than using the parameter that was passed.
If I leave the parameter off then I get a union of both table (3 million in Table a and 500K in table B) before the record selection uses the parameter.
Any ideas?
-lw
Oracle 8i using Oracle ODBC Driver
I receive a parameter from the main report for use in a subreport. No problem there. Question there is how can I incorporate the parameter into the Add Command of the subreport.
I tried to use the same parameter name but that didn't work. What I am getting is a complete union of both tables. I just want specific records from each table
Select
person_id
from
tablea
where
person_id = {?pm-parm}
union
Select
person_id
from
tableb
where
person_id = {?pm-parm};
I stil get prompted for the parameter rather than using the parameter that was passed.
If I leave the parameter off then I get a union of both table (3 million in Table a and 500K in table B) before the record selection uses the parameter.
Any ideas?
-lw