Results 1 to 2 of 2
  1. #1
    Ucramos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    1

    Download File from Internet (link on field) and save it(link on field).

    Hi.
    I donīt have a lot of experience using VBA but i think this is the only way to do what i want.

    I have a form called "Produtos"
    in that form i have 2 fields that i want to use.
    "FotoSitePNG" has the full link to a file i want to download like: www.website.com\image01.png
    "FotoLocalPNG" has the full link to the dir and file name i want to download to like: D\imagens\image01.png

    These links vary with every field on the table, so i wanted to do something like: =downloadfile ([FotoSitePNG], [FotoLocalPNG])



    Iīve tried every tip that i found on google, but i canīt get any to work.

    Please help.
    Last edited by Ucramos; 07-25-2011 at 06:48 AM. Reason: Solved

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    What have you tried and why didn't it work - error messages, bad results? Is downloadfile a Sub or Function procedure you built? Post the code for analysis. Where are you calling this procedure? The = sign makes me think in a textbox or query field and I don't know how that could be successful. Check this article (sample code is VB.net but maybe adaptable) http://vbnet.mvps.org/index.html?cod...ilenocache.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Make link on form to download DB to computer
    By bowser.specialk in forum Access
    Replies: 2
    Last Post: 07-19-2011, 06:11 AM
  2. How to link field
    By jmk909er in forum Forms
    Replies: 32
    Last Post: 10-23-2010, 07:44 PM
  3. Link Master Field and Link Child Field
    By evander in forum Forms
    Replies: 2
    Last Post: 05-25-2010, 09:13 PM
  4. Link Master Field Error
    By Lynn in forum Access
    Replies: 6
    Last Post: 04-11-2010, 01:00 PM
  5. Link ComboBox to field in a table
    By DrDebate in forum Forms
    Replies: 0
    Last Post: 04-27-2007, 08:03 AM

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