Solved

how to connect ftp microsoft access database in visual basic 6.0

Posted on 2009-04-13
3
683 Views
Last Modified: 2012-05-06
how to connect ftp microsoft access database in visual basic 6.0
0
Comment
Question by:maxeinfotech
3 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 24128705
sorry, can u explain a little more

firstly you are writing in vb, not the vba in msaccess right?
secondly you want to use ftp, but where does msaccess come in?

I will make an assumption that you want to ftp from msaccess?
what do you want to do, put a file? get a file?

0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 24129187
There are two basic ways to FTP with code:
1. Create a script file and then execute it using Shell().  In this case you are usingt the built-in client.
  That is covered here:
http://www.mvps.org/access/modules/mdl0015.htm
  and I can add more detail to that if you want.
2.  Use functions in the WinInet DLL.  That is covered here:
http://www.mvps.org/access/modules/mdl0037.htm
  Either works well.  Some don't like shelling out, but it gives you the ability to troubleshoot somewhat easily as anything the program does, you can verify by manually doing the same steps.  The drawback however is that you depend on the installed FTP client to handle things and not all clients are the same.  For example, the FTP client that comes with Win XP can only handle active FTP sessions and not passive.
  Either one of the above will work in VB or VBA.  Your other option of course would be to buy a 3rd party control to do the FTP.
HTH,
JimD
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now