Passing parameter value to subreports
I have Report1 that uses storedproc with parameter and it works fine.
I have another Report2 that also uses storedproc with parameter and it also works fine.
Now, I want Report2 to be merged to Report1 as subreport. When I inserted a subreport to Report1 and selected Report2 as subreport, the application now throws "Missing paremeter field value". I guess the parameter value I passed to Report1 was not passed to Report2. Although they used different storedproc, the parameters they require are the same.
Does anybody here knows how I can pass the value of the parameter to Report1 (main report) and Report2 (subreport)? As I mentioned, the reports use two different storedproc but the storedproc requires the same parameter. Thanks in advance.