Instead of trying to use a shared
variable, link the main report to the sub-reort on the desired field.
** edit **
Instructions:
- Right click the sub-report and choose
Change Subreport Links...
- Select the desired field (
engine.rptno
) from the main report (a listbox), then click>
- Select the desired field (
engine.rptno
) from the subreport (a picklist), then clickOK
A record-section formula will be generated in the subreport that resembles:
{engine.rptno} = {?Pm-engine.rptno}