I have a linked table called “enable” and I would like to change the source of the data using VBA.
I have the following 2 lines in a function:
CurrentDb.TableDefs(“enable”).Connect = “DATABASE = j:groupsvaluationewmethfpvafpen0406.mdb”
CurrentDb.TableDefs(“enable”).RefreshLink
The 0406 is the year and month of my datafile. The table is currently linked to the 0405 datafile. When I execute this function, it seems to have no effect. The link stays as 0405. What am I doing wrong?
Thanks.