ActiveX component can't create object

F

FaisalK

Hi
I m trying to use ActiveX OCX files like MSMAPI32.ocx, MSINET.ocx...etc in
my Access Module. But all fail with error message "ActiveX component can't
create object".

I have tried the following...
Dim FTP as Object
set FTP = createobject("INET")
- - - - - - - - - - - - -
Dim FTP as New INET

- - - - - - - - - - - - - - -

It work on some PC & some not. Can someone help to find whats missing.

Highly appreciate your assistance.

regards

faisal Karim
 
A

Alex Dybenko

in case control have a license - you can no just use createobject to
initiate it, in VB there is a linceses collection which you have to fill
before doing such things
i think the only workaround for access is to insert this control on a form
(can be a hidden form also) and set reference to it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top