login about faq

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

asked Jun 22 '12 at 05:38

mitch_ch's gravatar image

mitch_ch
16112


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

link

answered Jun 22 '12 at 07:52

mitch_ch's gravatar image

mitch_ch
16112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×13
×2
×1

Asked: Jun 22 '12 at 05:38

Seen: 1,542 times

Last updated: Jun 22 '12 at 07:52

powered by OSQA