Results 1 to 3 of 3
  1. #1
    Ndain is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    5

    Exclamation Help! Update Linked tables to new path

    I have developed an excel tool that is used to do some complex calculations. Once the calculations are complete, I use an Access DB to query the records up to a SharePoint List. The Excel tables and SP lists are all linked tables in Access.



    I also have about 10 users using their own version of this tool at the same time. So that's 10 excel files and 10 Access DBs. When I make updates, I like to copy one acess file and paste it in the other 9 folders to replace the existing file. This breaks the links and I have to manually relink/refresh the linked excel/SP tables.

    I would like to create an Access Macro that I can run that would update these linkes automatically. Keep in mind that when I overwrite all the Access files the tables are linked to C:\folderA\excelfile.xlsm but I want them to be linked to the excel file of the same name within the same folder as the access database 9C:\folder\excelfile.xlsm.

    Any help would be appreciated!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    if you link in the file, c:\myfile.xls
    then get a new one, the overwrite the old one using the exact same name,
    then no links are broken. The new data has the same name as the old one, so links remain.

  3. #3
    Ndain is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2017
    Posts
    5
    Quote Originally Posted by ranman256 View Post
    if you link in the file, c:\myfile.xls
    then get a new one, the overwrite the old one using the exact same name,
    then no links are broken. The new data has the same name as the old one, so links remain.
    The path of the excel file is changing. Same structure but different location. I want the DB to find the new file within the same path as itself and re link.

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

Similar Threads

  1. using UNC path for linked tables
    By tagteam in forum Access
    Replies: 4
    Last Post: 06-24-2016, 07:12 AM
  2. Must Change the Path to Linked Tables
    By michaeltrombetta in forum Import/Export Data
    Replies: 3
    Last Post: 03-11-2016, 02:20 PM
  3. Replies: 5
    Last Post: 10-22-2013, 07:37 AM
  4. Replies: 7
    Last Post: 08-18-2011, 02:18 PM
  5. auto update of two linked tables
    By colenzo in forum Access
    Replies: 4
    Last Post: 07-20-2009, 09:08 AM

Tags for this Thread

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