Changing the Subreport Object while the report runs

L

Lee

I have a Master report that contains the header, footer, and group
information. A sub report for products is used as the detail. I would like to
programatically change which subreport is used based on the product. Are
there events etc. within the report to allow me to do this?
 
M

Marshall Barton

Lee said:
I have a Master report that contains the header, footer, and group
information. A sub report for products is used as the detail. I would like to
programatically change which subreport is used based on the product. Are
there events etc. within the report to allow me to do this?


Put both subreport in the detail section, one on top of the
other. Then use code in the details section's Format event
to make one visible and the other invisible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top