Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2005, 10:24 AM
Authorized User
 
Join Date: Aug 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default weird ~sq_c error when setting SourceObject

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£
__________________
ÐaÐeVi£
 
Old August 11th, 2005, 02:59 PM
Authorized User
 
Join Date: Aug 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

* bump *
anybody deal with this before? please?

Thanks

ÐaÐeVi£
 
Old August 15th, 2005, 08:29 AM
Authorized User
 
Join Date: Aug 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

*bump*

ÐaÐeVi£





Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Error Message jeremy1048 Access 2 April 8th, 2008 04:52 AM
Weird Syntax Error mjhoagland Classic ASP Professional 3 May 5th, 2007 04:25 AM
VWD Weird Error bmains Visual Studio 2005 1 May 2nd, 2005 09:46 AM
Weird MySQL error cmiller PHP Databases 3 April 6th, 2004 04:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.