I need some help with referencing a subform.
I have my main form frmProductLine, in this I have a subform called frmProduct subform.
I have entered the following in a field in the frmProduct subform :
if (button = acleftbutton) then docmd.openform "frmcalander",,,,,,"frmProduct subform"
This works fine but the problem I have is that frmProduct subform also has its own subforms. frmTraining subform and frmProductInformation Subform.
If I use the command above and put in frmtraining subform instead of frm product I get an invalid use of null error.
So I believe I have to reference the subforms correctly but I do not know the syntax to put it in e.g forms!frmProduct subform!frmTraining subform or something,
any help would be appreciated.
I have my main form frmProductLine, in this I have a subform called frmProduct subform.
I have entered the following in a field in the frmProduct subform :
if (button = acleftbutton) then docmd.openform "frmcalander",,,,,,"frmProduct subform"
This works fine but the problem I have is that frmProduct subform also has its own subforms. frmTraining subform and frmProductInformation Subform.
If I use the command above and put in frmtraining subform instead of frm product I get an invalid use of null error.
So I believe I have to reference the subforms correctly but I do not know the syntax to put it in e.g forms!frmProduct subform!frmTraining subform or something,
any help would be appreciated.