Results 1 to 4 of 4
  1. #1
    vlad is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    2

    Download data from FTP to MS Access

    Hello guys
    I have one, maybe silly, question.
    I have a lot of tables placed on FTP (txt, csv) and I need to download them ( or link) to my MS Access working file. I have no clue how can I manage it.


    Can you please give me some hint?
    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Download the files to a folder to a generic name every time....like clients2import.txt.
    link the text file as a table
    build a query that appends the linked table to a perm table.
    Put this qry in a macro.

    so the workflow would be:
    FTP the file
    run the macro. Done.

  3. #3
    vlad is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    2
    Hi Ranman256
    Thank you for you help, but I have one small problem, how can I manage to have same name for file from FTP. Ftp files have name+appendix contains date of posting e,g iScala7q -2015/10/12 next month the same file will be under iScala7q -2015/11/15. so I have no idea how can I hit same name for same file month to month
    Thanks

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If I understand correctly, you download via FTP text/csv files to a folder. Then you want to import the data in the files into access.

    Method:

    1)The code can open the "Open File Dialog Box" to allow you to select the file to import. If there are 5 files to be imported, you would have to execute this code 5 times.

    2) The code can open the "Open Folder Dialog Box" to allow you to select the folder that the files are in. The code cycles through the files (all files that match the criteria) in the folder. The file names are not important in that the code will find every file that meets the specs. After importing, the files would need to be moved (via code or manually) to an archive folder. This clears the FTP folder to be ready for next months downloads.


    I have used both methods.... both work very well.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access VB download Excel file from website
    By lizzycole in forum Import/Export Data
    Replies: 7
    Last Post: 04-01-2013, 02:54 PM
  2. FTP download... then FTP delete
    By redbull in forum Programming
    Replies: 4
    Last Post: 07-17-2012, 02:46 PM
  3. Replies: 5
    Last Post: 07-17-2011, 08:57 AM
  4. Replies: 0
    Last Post: 08-20-2010, 09:26 AM
  5. download test file from WS_FTPin Access VBA
    By dollygg in forum Access
    Replies: 0
    Last Post: 07-28-2009, 08:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums