UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Changing Linked table pathname in VBA    
 
   
ddmonoman
post 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?
Go to the top of the page
 
+
xteam
post 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 )
Go to the top of the page
 
+
ddmonoman
post 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 the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 04:26 PM