Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Instantiation o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 29817 of 31576
Post > Topic >>

Instantiation of ActiveX Control from Class Module

by Vincent <animedreamer@[EMAIL PROTECTED] > Apr 1, 2008 at 03:44 PM

I am trying to instantiate an activex control directly from a
class module.

     My declaration is as follows:  Private WithEvents myPCCharge As
Charge.OCXCharge

      I am trying to instantiate the object as follows:  set
myPCCharge = CreateObject("Charge.OCXCharge")

      When the program encounters the line of code above, I receive
the following error:  "Run-time error '398': Client Site not
available."  I have done some searching on this error message, but it
did not turn up anything substantial.  Can anyone give me some ideas
what might be occurring here?  Typically, I work with this control by
placing it directly on a form, but I do not understand why the above
would not work equally as well.  If I have to, I will place the
control on a form that I can instantiate from my class module, but I
really don't want to do this.  Any help is appreciated.

Vincent
 




 10 Posts in Topic:
Instantiation of ActiveX Control from Class Module
Vincent <animedreamer@  2008-04-01 15:44:30 
Re: Instantiation of ActiveX Control from Class Module
"Stuart McCall"  2008-04-02 00:52:22 
Re: Instantiation of ActiveX Control from Class Module
Vincent <animedreamer@  2008-04-01 17:05:04 
Re: Instantiation of ActiveX Control from Class Module
"Stuart McCall"  2008-04-02 01:40:15 
Re: Instantiation of ActiveX Control from Class Module
"Stuart McCall"  2008-04-02 01:46:57 
Re: Instantiation of ActiveX Control from Class Module
Vincent <animedreamer@  2008-04-01 18:09:41 
Re: Instantiation of ActiveX Control from Class Module
"Stuart McCall"  2008-04-02 02:38:34 
Re: Instantiation of ActiveX Control from Class Module
rkc <rkc@[EMAIL PROTEC  2008-04-01 21:47:22 
Re: Instantiation of ActiveX Control from Class Module
Vincent <animedreamer@  2008-04-01 20:01:34 
Re: Instantiation of ActiveX Control from Class Module
Vincent <animedreamer@  2008-04-03 07:11:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:50:50 CST 2008.