Solved

FTP from VBA using Windows 2k8 Server R2

Posted on 2010-08-23
5
729 Views
Last Modified: 2013-11-29
I am creating a Microsoft Access database that needs to send and receive files via FTP.

I'm running Windows Server 2008 and MS Office 2003. So far everything has been fine.

I downloaded msinet.ocx.  I placed it in the System32 file; but when I tried to reference it from within VBA, it couldn't find the file. Puzzled, I placed the file in c:/. Then I referenced it. Also registered it from that location. However, when I attempted to register it from the System32 file, I got the message "the module may not be compatible with the version of Windows you're using."

Anyway, when I try to run the VBA code, I get the following message: "ActiveX Component can't create object."

Also, this is being used completely in memory - its not tied to a control of any sort on a form. Does it need to be?

Any ideas ?? I read a bunch of things online ranging from licensing issues to 64-bit incompatibility . . . i'm lost.
0
Comment
Question by:dennisdh86
  • 3
5 Comments
 
LVL 12

Expert Comment

by:mcv22
ID: 33505188
0
 

Author Comment

by:dennisdh86
ID: 33505326
i did try using this before - couldn't get it to work, not sure why.
0
 
LVL 18

Accepted Solution

by:
jmoss111 earned 300 total points
ID: 33506045
Ive been using a solution based on http://www.mvps.org/access/modules/mdl0037.htm for quite awhile. If you download files larger than 42 mb you will run into a numeric overflow error 6 in a counter.
0
 

Author Comment

by:dennisdh86
ID: 33513658
i have tried this solution as well, but found it poorly documented and therefore rather cumbersome to implement. It does work right now; however I was drawn to msinet.ocx because of the StateChanged event and its ability to tell me what point i'm at. (Also there is plenty of documentation for it.)

Do you know if there is a way this can be accomplished using the solution above?
0
 

Author Closing Comment

by:dennisdh86
ID: 33745584
Thanks!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question