I don't remember the exact syntax, but there is a collection of subreports. You can get a reference to that collection and then get a reference to a specific subreport. Once you have that reference, you can change the datafile for it.
>Hi,
>
>Can anybody help me on this.
>
>I have a report which is designed in crystal report writer. Inside that report I have three sub reports. Each subreport has its own datafiles. I need to change the datafiles of the subreports when I am running the application. I was able to change the datafiles of the main report, but not for the subreport.
>
>Thanks