I have a form with 2 subforms in datasheet view
The recordsource of the 2nd subform is changed in the enter event of the first field of the first subform like so
Forms!frmclocks!Sources.Form.RecordSource = "SELECT tblsources.SWITCH, tblsources.LCOS, tblsources.LTG, tblsources.DIU, tblsources.TGNO FROM tblsources WHERE (((tblsources.SWITCH)='" & Me!Switch & "'))"
This is working perfectly once the form is loaded. I can use the arrows to jump from record to recod and the 2nd subform will be updated accordingly
When I first open the form, the enter event of the first subform triggers but can not reference the 2nd subform and I get a 2455 error.
Forms!frmclocks!Sources can be referenced
Forms!frmclocks!Sources.Form can not be referenced
So is there a way to check if the subform's form is loaded or not or if there is a way to change the order in which subforms are loaded?
I tried setting the tabstop property to no but then I can not navigate the datasheet anymore.
Any help is welcome.
The recordsource of the 2nd subform is changed in the enter event of the first field of the first subform like so
Forms!frmclocks!Sources.Form.RecordSource = "SELECT tblsources.SWITCH, tblsources.LCOS, tblsources.LTG, tblsources.DIU, tblsources.TGNO FROM tblsources WHERE (((tblsources.SWITCH)='" & Me!Switch & "'))"
This is working perfectly once the form is loaded. I can use the arrows to jump from record to recod and the 2nd subform will be updated accordingly
When I first open the form, the enter event of the first subform triggers but can not reference the 2nd subform and I get a 2455 error.
Forms!frmclocks!Sources can be referenced
Forms!frmclocks!Sources.Form can not be referenced
So is there a way to check if the subform's form is loaded or not or if there is a way to change the order in which subforms are loaded?
I tried setting the tabstop property to no but then I can not navigate the datasheet anymore.
Any help is welcome.