Results 1 to 3 of 3
  1. #1
    BullwinkleTMoose is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Oct 2015
    Posts
    6

    Can updating links be automated?

    We use Access 2016 and have a number of databases with external links to Excel or Text files.


    These links have to be updated each month as we get new files.

    Is it possible to set up a macro or module that would update these links automatically?

    If we needed to update a directory or file reference in the VBA code, that would be OK. Would like to eliminate the potential errors that come when you do each link manually.

    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    if the excel filename changes, then you must link manually to pick the new filename. Relinking wont work on a new file.
    if the filename did NOT change, then theres no relinking needed.
    what did you want to automate?

    I always save my new files and overwrite the old generic name: c:\temp\DateFileAccts.xls
    then no relinking is needed.
    Last edited by ranman256; 03-08-2018 at 05:57 AM.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    As ranman said, and as long as the file structure remains the same, replace the file and the link should persist and the revised data automatically 'updates' through the link.

    This is assuming the new files are cumulative data and therefore replacing the older file is appropriate.
    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. links subform
    By slimjen in forum Forms
    Replies: 3
    Last Post: 05-07-2013, 01:56 PM
  2. Links and Relationships Help !
    By wrkadri in forum Database Design
    Replies: 3
    Last Post: 03-08-2013, 08:09 AM
  3. Can you set a combo box to open links?
    By Procom Webserve in forum Access
    Replies: 2
    Last Post: 12-07-2009, 03:11 AM
  4. Testing links
    By piflechien73 in forum Forms
    Replies: 0
    Last Post: 06-01-2009, 05:09 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