CharlieT302
Instructor
Hi Folks,
I want to be able to check for the existence of a table link. If it does not exist, recreate it. If it does, delete it and then recreate it.
I had a similar problem determining if a linked file exists. Thanks to the help of some of you, I corrected it. However, this seems to be slightly different.
Background:
I have four table links that connect to different worksheets on an Excel workbook. The workbook is located off the My Documents folder. Because the dbase will transfer between workstations, I have created a form that uses a command button to delete the existing links and recreate them on the current workstation using the path specified in a text box.
What I am doing currently is this: if the links do not exist, an error code results if an attempt is made to delete them (makes sense). As of now, my code says if the error code value occurs move to the section that recreates the link.
Isn't there a better way of determing if a link exists?
I want to be able to check for the existence of a table link. If it does not exist, recreate it. If it does, delete it and then recreate it.
I had a similar problem determining if a linked file exists. Thanks to the help of some of you, I corrected it. However, this seems to be slightly different.
Background:
I have four table links that connect to different worksheets on an Excel workbook. The workbook is located off the My Documents folder. Because the dbase will transfer between workstations, I have created a form that uses a command button to delete the existing links and recreate them on the current workstation using the path specified in a text box.
What I am doing currently is this: if the links do not exist, an error code results if an attempt is made to delete them (makes sense). As of now, my code says if the error code value occurs move to the section that recreates the link.
Isn't there a better way of determing if a link exists?