>I have used the following code to set the value in the main report but do not know how to set the value for the parameter field within the sub report.
>Any help wil be appreciated!Gary,
All you have to do is get a reference to the subreport by using the OpenSubReport() method. For example:
oSubReport = oReport.OpenSubReport("MySubReport")
Since oSubReport is then a report object, you should have access to the same properties and collections in the subreport as you normally would in the main parent report.
HTH.
Laterness,
Jon
Jon Rosenbaum
Devcon Drummer