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