Yes, this should be doable from C#, VB, or VBScript.
"Frank de Badts" wrote in message
> Is it possible to set the recordsource property (including a parameter for
the SQL query) for a sub report?. E.g., from the main report I want to use
> Subreport.DataSource.RecordSource = sql;
> Can this be done from C# or VBScript?
> I also want to pass a parameter to the subreport, the SQL query should be
different for each record that is displayed on the main report. Is this
> Thanks in advance.