Ok gents - I've spent enough hours banging my head ...
I have a main form (frmMain) and a subform (frmReports) from which the user can select different reports to fire from a combo box (cboRptPicker) that sits on the subform.
When the button for generating the reports fires (also on the subform) it goes to a module that contains the following code:
The form(s) Main and Sub are open at the time this fires. The response is 'can't find the field frmReports refered to..'
I've also tried using this very helpful website for the different patterns (
however I'm at a loss.
Help is greatly appreciated.
I have a main form (frmMain) and a subform (frmReports) from which the user can select different reports to fire from a combo box (cboRptPicker) that sits on the subform.
When the button for generating the reports fires (also on the subform) it goes to a module that contains the following code:
Code:
rptNameStr = Forms!frmMain!frmReports!Forms.cboRptPicker.Value
The form(s) Main and Sub are open at the time this fires. The response is 'can't find the field frmReports refered to..'
I've also tried using this very helpful website for the different patterns (
however I'm at a loss.
Help is greatly appreciated.