Get informations from mainreport on opening subreport

U

Ulrich Jenzer

Hallo
I have a mainreport and use on this several times the same subreport. In
each sub report another filter is to be set. I store the filter information
when opening the mainreport in the subreport.Tag (on mainreport).
How can I get this information and set subreports filter on opening the
subreport?

Thanks in advance,

Ueli
 
M

Marshall Barton

Ulrich said:
I have a mainreport and use on this several times the same subreport. In
each sub report another filter is to be set. I store the filter information
when opening the mainreport in the subreport.Tag (on mainreport).
How can I get this information and set subreports filter on opening the
subreport?

Try using the subreport's Open event to set its own Filter.

Generally, it's much better to use the Link Master/Child
properties to restrict the subreport data.
 
Top