Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2005

Tip: Looking for answers? Try searching our database.

FTP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gargamil - 09 May 2005 01:04 GMT
Can anyone tell me how to FTP to and from a site using MS Access??  I've
tried Dev Ashish's code but can't get it working with 2003.  What am I
missing?

g
Jim Wood - 09 May 2005 01:14 GMT
If you are using the same code as I, I had to change the following in Public
Sub ConnectToFTPHost( _
...
 If Not mblnUpload Then
   With mtURLInfo

     Rem This line below was added - the apiFTPFileOpen command did not
like the "/" in
     Rem front of the path The line below strips the foward slash ..
     If Mid(.lpszUrlPath, 1, 1) = "/" Then .lpszUrlPath = Mid(.lpszUrlPath,
2)

     hFTP = apiFtpOpenFile(hSession, .lpszUrlPath, _
         lngFileMode, FTP_TRANSFER_TYPE_BINARY Or _
         INTERNET_FLAG_DONT_CACHE, 0&)

     If hFTP = 0 Then Err.Raise mconERR_CANNOT_START_TRANSFER

       lngRet = apiInetQueryDataAvailable(hFTP, mlngSize, 0&, 0&)
       If mlngSize = 0 Then mlngSize = 1
   End With
 End If
...
Hope this helps...

Jim Wood

______________________________________________________________________________________________

The Closest Christian Bookstore Is Only A Click Away

http://www.KathysChristianBooks.com

______________________________________________________________________________________________

Offer not valid in Rome or Salem. Fiddling prohibited by law. Being turned
into a newt also prohibited by law.

________________________________________________________________________________

> Can anyone tell me how to FTP to and from a site using MS Access??  I've
> tried Dev Ashish's code but can't get it working with 2003.  What am I
> missing?
>
> g
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.