I have a tabbed form with multiple linked sub-forms visible, linked and working.
With this form running and populated I go to the "Immediate Window" and type:
?isloaded("zfrmCRMNotes"
{which uses: SysCmd(acSysCmdGetObjectState, acForm, FormName)}
False <is returned>
I get the same results when I step through the forms collection whether I use:
If obj.IsLoaded = True
If frm.Name = strFormName
Can it be that running subforms are not considered isloaded=true?
The reason I need this even though the form works fine is that on first load of a parent form (before the subform is loaded) I'm getting:
"You entered an expression that has an invalid reference to the property Form/Report."
on the line:
Forms![frmOrderStatus]![zfrmCRM].Form![zfrmCRMNotes].Form![ONote] = Nz(rst!OCmt, ""
My solution is to preface poking data into this subform fields with:
If not isloaded("zfrmCRMNotes"
then exit sub.
But this test always fails (even when the subform IS open).
How can I avoid the initial error when it truly isn't loaded yet not be blocked when it is loaded?
Jim
With this form running and populated I go to the "Immediate Window" and type:
?isloaded("zfrmCRMNotes"
False <is returned>
I get the same results when I step through the forms collection whether I use:
If obj.IsLoaded = True
If frm.Name = strFormName
Can it be that running subforms are not considered isloaded=true?
The reason I need this even though the form works fine is that on first load of a parent form (before the subform is loaded) I'm getting:
"You entered an expression that has an invalid reference to the property Form/Report."
on the line:
Forms![frmOrderStatus]![zfrmCRM].Form![zfrmCRMNotes].Form![ONote] = Nz(rst!OCmt, ""
My solution is to preface poking data into this subform fields with:
If not isloaded("zfrmCRMNotes"
But this test always fails (even when the subform IS open).
How can I avoid the initial error when it truly isn't loaded yet not be blocked when it is loaded?
Jim