Solved

VBA FTP Upload from Access 2010 64-BIT

Posted on 2013-06-17
9
891 Views
Last Modified: 2013-07-08
I have been looking for a way to upload/download files from an FTP site.  I found some that work with 32-bit Access, but fail with 64-bit.

Any ideas on how to do this?

Thank you in advance.
0
Comment
Question by:Scamquist
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 27

Expert Comment

by:MacroShadow
ID: 39254552
Haven't tested this but give it a try.
FTP-Demo.mdb
0
 
LVL 16

Expert Comment

by:AlexPace
ID: 39254796
What problem were you having?  Was it a file permissions issue?  Was the DOS command line FTP client not installed?
0
 
LVL 1

Author Comment

by:Scamquist
ID: 39255008
AlexPace
I have had a problem getting started.  I searched and tried to cobble some code together and usually had errors that the code would not work with 64 bit software.  Also, I didn't see anything about dos FTP commands
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 27

Expert Comment

by:MacroShadow
ID: 39255173
Did you check my attachment?
0
 
LVL 1

Author Comment

by:Scamquist
ID: 39256050
MacroShadow.  I downloaded but there isn't a table named tblFTPFileList.  Also, the one of the modules will not compile.  I will try to determine the fields for the table and debug the code.
0
 
LVL 1

Author Comment

by:Scamquist
ID: 39291487
Long delay.  I'm sorry.  Just settling in to a new position.



I created the table tblFTPFileList, but the complie fails at:

    ret& = CreateProcessA(0&, Pathname, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc)

in the Public Sub ShellWait(Pathname As String, Optional WindowStyle As Long)

Will this work with Access 2010 64-bit.  I though the API functions were different in 64-bit.
0
 
LVL 27

Expert Comment

by:MacroShadow
ID: 39291634
Will this work with Access 2010 64-bit.
I thought it would.

I though the API functions were different in 64-bit.
They are. I updated the code to accommodate a 64-bit system.

I'm afraid I can't help you any more, I don't have a 64-bit machine.
0
 
LVL 1

Accepted Solution

by:
Scamquist earned 0 total points
ID: 39297945
The sample database does not work with 64-bit access.  I found a way around by using NetDrive, assigning a drive letter and using TransferSpreadsheet.
0
 
LVL 1

Author Closing Comment

by:Scamquist
ID: 39306606
I abandoned trying to use VB to solve the problem.  NetDrive assigns the FTP site with a drive letter and TransferSpreadsheet moves the file.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

726 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