Question : Setting filter on sub report

How do I set a filter on a subreport dynamically at run time? I have a master report with several subreports and in the master report On_Open event proc, I set the subReport source object like this me.child0.SourceObject="MySubReport2". No problem so far. But I also want to set the filter property for the sub report and can't figure out how. Any suggestions? Thanks in advance.

Answer : Setting filter on sub report

Apparently the sub report does not yet exist in the Open event.

Try moving the code to the

  Detail_Format()

event.

I just tried addressing the properties that you are using, and got the same error message as you did when I tried to read them, but when I moved the code I _could_ read them.
Random Solutions  
 
programming4us programming4us