Hi,
I'm trying to run a relink routine depending on what the current link path is for a table called 'tblBookings_ALL', so basically it would be along the lines of:
"If link path for tblBookings_ALL = txtLinkedFilePath (which would be "S:\TutorialBookings\Tables_BackEnd\TutorialBookings_BE.accdb" then....
...run code to relink to a different path.
I have the relink code running OK, all I need is to pull the current link path into a text box.
There is some pretty useful code attached which I'm sure works, but I can't get the path into the text box 'txtLinkedFilePath' so I must be doing something dumb. I just put the default value for the text box as the function name (GetLinkedTablePath) but it's returning #error. I've tried a few combinations of putting the actual table name into the code but I can't get it to do anything but show #Error. The code I'm using is attached. I've included the comments to be fair to the coder as i've just been trying to use wholesale his code. Is their a simpler way of what I want to do, or should this work fine?
I'm trying to run a relink routine depending on what the current link path is for a table called 'tblBookings_ALL', so basically it would be along the lines of:
"If link path for tblBookings_ALL = txtLinkedFilePath (which would be "S:\TutorialBookings\Tables_BackEnd\TutorialBookings_BE.accdb" then....
...run code to relink to a different path.
I have the relink code running OK, all I need is to pull the current link path into a text box.
There is some pretty useful code attached which I'm sure works, but I can't get the path into the text box 'txtLinkedFilePath' so I must be doing something dumb. I just put the default value for the text box as the function name (GetLinkedTablePath) but it's returning #error. I've tried a few combinations of putting the actual table name into the code but I can't get it to do anything but show #Error. The code I'm using is attached. I've included the comments to be fair to the coder as i've just been trying to use wholesale his code. Is their a simpler way of what I want to do, or should this work fine?