Linked Table Manager (1 Viewer)

PaulO

Registered User.
Local time
Today, 14:06
Joined
Oct 9, 2008
Messages
421
Is there any way of editing/updating the Linked Table Manager other than through 'Tools'?
 

PaulO

Registered User.
Local time
Today, 14:06
Joined
Oct 9, 2008
Messages
421
Thanks Rabbie ...

What I am actually trying to do is vary the links in the Linked Table Manager at Startup dependant on the directory name held in a standard Table in the Front End application.

So ... the Directory where the 'BE' file is stored could be, for example
  1. C:\Program Files\MyWork
  2. C:\MyWork
  3. My Documents\MyWork
  4. F:\MyWork (e.g. Network)
I want the Front End database to link to the 'BE' database plus any other sundry Excel and Text files in that particular, variable, location.

Hope that makes sense?
 

Rabbie

Super Moderator
Local time
Today, 14:06
Joined
Jul 10, 2007
Messages
5,906
I am sure the code I linked to could be changed to do what you want. It would just be a matter of reading the location from your FE table and then linking to that directory.
 

PaulO

Registered User.
Local time
Today, 14:06
Joined
Oct 9, 2008
Messages
421
Okay ... I'll take a longer look at the VB coding to see where it could be varied to suit my requirement.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 14:06
Joined
Sep 12, 2006
Messages
15,653
paul

the best way to do this is to read the location from the table (i assume its a local table) and check if the connected location for a linked table is the same.

tabledefs("ATable").connect will be

;database=path......

------------------
if the path in the connect string is not the same then use some code to reconnect all the tables - there are lots of tools for this on here.
 

PaulO

Registered User.
Local time
Today, 14:06
Joined
Oct 9, 2008
Messages
421
Thanks Dave ... but have to confess this is way out of my comfort zone!
 

Users who are viewing this thread

Top Bottom