Solved

how to connect ftp microsoft access database in visual basic 6.0

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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.
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…

864 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

19 Experts available now in Live!

Get 1:1 Help Now