msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Object within an Object

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
Bryon



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri Oct 01, 2004 5:11 pm    Post subject: Object within an Object Reply with quote

Hello,

I hope this is the right group to post to.

I'm trying to have a VB6 application create an Access.Application (Office10)
object through late binding (CreateObject), which opens an MDE database.
The Access code will then create an Excel.Application (again through late
binding; GetObject).

However, when the Access application tries to create the Excel application,
I get the following error: ActiveX Component Can't Create Object

This error does not occur if I open the Access file directly, not through
VB6.

Right now I'm having the VB6 application create a shell which call the
Access database, but I'm very uncomfortable about hard-coding the entire
path-to-msaccess.exe in my application.

Do VB6 or VBA have an object-depth limit of one? Or, any ideas what could
be wrong?

Thanks,
Bryon

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group