The very simplest way is to open the other report as acHidden, and then take the values from the report control. Make sure the On Close event of your visible report closes the other report. I would use 2 copies of each report: Deviation, Deviation_Hidden, Numbers, Numbers_Hidden, just so there is no overlapping code.
The most elegant way to do this is to create public function in a module that gathers that data regardless of where the call is from. So the control on the Numbers report would be: fnDeviation(), and vice versa.
I always use ADO since I always do Access / SQL, so maybe Greg's code would work best for this.
Did that help?
__________________
mmcdonal
Look it up at: http://wrox.books24x7.com
|