Link to home
Start Free TrialLog in
Avatar of csehz
csehzFlag for Hungary

asked on

VBA Access 2000 - Modify linked table path with VBA code

Dear Experts,

I have an excel table linked to Access database, in the table properties it appears like this below:

Excel5.0;HDR=YES;IMEX=2;DATABASE=D:\Folder\routing.xls;TABLE=Routing_PLF5_0115$

Of course but this can not be changed in table Design View, can you please advise could it be changed by VBA code?

For example I would like to have the file linked from C:\My documents

thanks,
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hitsdoshi1
hitsdoshi1

You can use this Add-In for excel, much easier to change linked tables/pivot tables with it.

http://www.contextures.com/xlPivotPlayPlus01.html
It's often just as easy to delete the Linked table and re-create using Files, Get External Data... and follow the wizard.
Avatar of csehz

ASKER

Thanks very much
Avatar of csehz

ASKER

GRayL I know but unfortunately there  are more tables, moreover daily changing file names like file2904.xls so also would like to build a logic in vba to follow those changes with the link