I wish to return the path for the database where a linked table is located. I will continue looking myself but if anyone has the answer to hand I would appreciate it.
Extract:-
It also has a GetPath function which returns just the path of the directory where the database resides. I use this for finding the directory where the database lives so I can put my LinkRemote.mdb there. There is also a GetFile function which just returns the file name of the current database, but this is not used here.
SELECT MSysObjects.Name, MSysObjects.Database
FROM MSysObjects
WHERE (((Left([Name],1))<>"~") AND ((MSysObjects.Type)=4 Or (MSysObjects.Type)=6))
ORDER BY MSysObjects.Name;