Solved

how to connect ftp microsoft access database in visual basic 6.0

Posted on 2009-04-13
3
709 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

815 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

8 Experts available now in Live!

Get 1:1 Help Now