I am using MS Access 2003.
I have a form that has 3 subforms.
From top to bottom, I will call my subforms:
subform1
subform2
subform3
On the subform2 OnCurrent event, I try to load the RecordSource of subform3. When I first bring up the form, I always get an error. If I click Ok through the error, it doesn't happen again, until I close the form and then open it back up.
The error message I am getting is: "You entered an expression that has an invalid reference to the property Form/Report"
Here is the line it is quiting on
I put a break on that line and the first time the form is loading, I get the error message. I try to get the value from the immediate window and I get the same message. I click OK and then it comes back to the line a second time. It is successful the second time it runs.
Is there a way to tell if the subforms have loaded yet?
I have a form that has 3 subforms.
From top to bottom, I will call my subforms:
subform1
subform2
subform3
On the subform2 OnCurrent event, I try to load the RecordSource of subform3. When I first bring up the form, I always get an error. If I click Ok through the error, it doesn't happen again, until I close the form and then open it back up.
The error message I am getting is: "You entered an expression that has an invalid reference to the property Form/Report"
Here is the line it is quiting on
Code:
Forms![frmWorkOrder]![frmSubWOTasksAssigned].Form.RecordSource = strSQL
I put a break on that line and the first time the form is loading, I get the error message. I try to get the value from the immediate window and I get the same message. I click OK and then it comes back to the line a second time. It is successful the second time it runs.
Is there a way to tell if the subforms have loaded yet?