You treat the subreport as another report. You have to get a reference to the report object FOR THE SUBREPORT. Then you can set the parameters for it's parameter object.
>Hi Craig
>
>not quite sure what you mean by that.
>
>I'm creating the report in crystal. (Version 11)
>
>The main report asks for start and end date and an organisation code as a parameter.
>
>I want to use the same values in the sub report stored procedure.
>
>I've added the stored procedure as as the data source for the sub report but I can't find where I can pass across and set the parameters for the stored procedure so I'm getting asked twice.
>
>Thanks
>
>(enjoy you holiday. I hope you're doing something nice.)
>
>Nick
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer