Working in Access 2010.
I have an unbound main form that I use to recall data from tables.
I have 4 subforms on the from in a tabcontrol.
The subforms data are all linked properly.
I have the following code to requery 3 of the subforms when one of the other forms changes records:
Private Sub Form_Current()
Me.Parent.[frmUpdateWarrantyLinks].Form.Requery
Me.Parent.[frmUpdateWarrantyNotes].Form.Requery
Me.Parent.[frmUpdateWarrantySupplier].Form.Requery
End Sub
The code works fine except when I open the main form for the first time.
Then I get a Run-time error '2455":
You entered an expression that has an invalid reference to the property Form/Report.
Any ideas?
I have an unbound main form that I use to recall data from tables.
I have 4 subforms on the from in a tabcontrol.
The subforms data are all linked properly.
I have the following code to requery 3 of the subforms when one of the other forms changes records:
Private Sub Form_Current()
Me.Parent.[frmUpdateWarrantyLinks].Form.Requery
Me.Parent.[frmUpdateWarrantyNotes].Form.Requery
Me.Parent.[frmUpdateWarrantySupplier].Form.Requery
End Sub
The code works fine except when I open the main form for the first time.
Then I get a Run-time error '2455":
You entered an expression that has an invalid reference to the property Form/Report.
Any ideas?