Linking tables programatically

A

audreybmorin

Hi,
I can link tables programatically, but, of course, every time I do this, a new link is added instead of just updating the link.
I have a function that can retrieve the current link (not updated).
I can then compare this to the valid link (value to which the table link must be updated).
All I need to do now is update the link if it is invalid the current and valid links are not the same.
What function/method/etc. should I use to update the link?
Thanks.
 
M

Marshall Barton

audreybmorin said:
I can link tables programatically, but, of course, every time I do this, a new link is added instead of just updating the link.
I have a function that can retrieve the current link (not updated).
I can then compare this to the valid link (value to which the table link must be updated).
All I need to do now is update the link if it is invalid the current and valid links are not the same.
What function/method/etc. should I use to update the link?


Use the TableDef object's Connect property and RefreshLink
method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top