My Assistant
![]() ![]() |
|
|
Mar 15 2005, 01:18 PM
Post
#1
|
|
|
New Member Posts: 2 |
In my database, i have several excel files linked as tables into the database. When the database is moved from one computer to another, the links are broken because the same drive or directory may not be available.
Is it possible to dynamically change the pathname to the linked tables/files in VBA? |
|
|
|
Mar 15 2005, 01:56 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 3,667 From: Toronto, ON |
Is not possible to change the path to a linked file/table . You will have to delete the old link and re-create the links.
Note - if the files are located on a server, then use the UNC path rather then Drive mapping letter (the drive could be mapped by using different letters ) |
|
|
|
Mar 15 2005, 02:02 PM
Post
#3
|
|
|
New Member Posts: 2 |
Thanks, I was afraid of that. It also explains why I couldn't find any reference anywhere to doing it.
Instead of a static link, I may just hard code the importing of the data, that way I can control the source path. Thanks, Dave |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 04:26 PM |