Archived Forum Post

Index of archived forum posts

Question:

MS-Access 2010 x64 - Chilkat Issue

Jun 22 '12 at 07:52

Hi,

It's the first time I use chilkat library, like a newbee... So I try to use the FTP2 without Sucesss, when I try to use the componenent I receive from MS-Access "Error 429" : an ActiveX cannot create an object"

Here the code

Public Sub Btn_Import_Click()

Dim toto As Integer
Dim FTP As Object

Set FTP = CreateObject("Chilkat.Ftp2")

toto = FTP.UnlockComponent("LicenceKey")
FTP.Hostname = "Hostname"
FTP.UserName = "UserName"
FTP.Password = "Password"

toto = FTP.Connect
toto = FTP.Disconnect

end Sub

I use the 64bit version of MS-Access, it is certanly due to a bad .dll registring... it's so confusing... I tried to insert the DLL inot the References... without success.

So need is required !

Thx in advance

Michel


Answer

So... after some tests I found a solution (perhaps not THE solution..)

With MS-ACCESS 2010 x64 version :

1) Install the Chilkat ActiveX x64 library ChilkatActiveX-9.3.1-x64

2) Follow the recommandation (Install it into the system32 folder) and register the ChilkatFtp2_x64.dll

3) DON'T TRY TO ADD the ActiveX into the MS-ACCESS Library, it will not work

4) Declare the library in somehting like that :

Public Sub Btn_Import_Click()

Dim toto As Integer
Dim FTP As Object

Set FTP = CreateObject("Chilkat.FTP2")

    toto = FTP.UnlockComponent("Your licenceKey")
FTP.Hostname = "FTP_Adress"
FTP.UserName = "UserName"
FTP.Password = "Address"

toto = FTP.Connect

'Here your code

toto = FTP.Disconnect

Set FTP = nothing ' To clean up the ActiveX component, and free the memory...

End Sub

It will work !

Regards

Michel