|
Subject:
|
weird ~sq_c error when setting SourceObject
|
|
Posted By:
|
DaDeViL
|
Post Date:
|
8/11/2005 10:24:55 AM
|
Hello, i'm new to VB and these forums. I am using Access 2000
I have been working on a project that requires me to open a PARENT form dynamically using CreateForm, and then create CHILD foms using a separate function and then finally in the PARENT form's Form_Open event, I inserted the code:
Me.Child0.SourceObject = "Form2"
to explain: Child0 is a SubForm control in the PARENT form ("Form1") "Form2" is the name of the CHILD form that has been created dynamically.
But something goes wrong and I get the error:
"The Microsoft Jet database engine could not find the object '~sq_cForm1~sq_cChild0'. Make sure the object exists and that you spell its name and the path name correctly."
Is it saying it cant find the PARENT form's subform (Child0)? I cant figure out where to start searching for whats wrong. When I click Debug, it points to the code provided above.
Can anyone shed some light?
Thanks!
ŠaŠeVi£
ŠaŠeVi£
|
|
Reply By:
|
DaDeViL
|
Reply Date:
|
8/11/2005 2:59:40 PM
|
* bump * anybody deal with this before? please?
Thanks
ŠaŠeVi£
|
|
Reply By:
|
DaDeViL
|
Reply Date:
|
8/15/2005 8:29:25 AM
|
*bump*
ŠaŠeVi£
|
|