As far as I know, printing or previewing a report are practically the same for Access, so I guess both following lines will pass the value from the main report to the subreport:
DoCmd.OpenReport "ReportName" 'this will print the report
DoCmd.OpenReport "ReportName", acPreview 'this will display it on the screen
If you mean changing the recordsource, this is only possible in the Open event of the report, so you can't do it 'while' printing or previewing.
However, you can filter the existing records after you have already opened the report, but this has effect only in Preview mode, because if you print it directly, the report is closed immediately after having been rendered to the printer.
Have I missed the point???
I hope you understand more than I do from what I wrote here...
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)
Daniel Vlas
Systems Consultant
danvlas@yahoo.com