?
Solved

how to connect ftp microsoft access database in visual basic 6.0

Posted on 2009-04-13
3
Medium Priority
?
761 Views
Last Modified: 2012-05-06
how to connect ftp microsoft access database in visual basic 6.0
0
Comment
Question by:maxeinfotech
2 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 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 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

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

807 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