Tym said:
Thanks... works fine when specifying the table name directly.
Is there a way of having the table name specified in a variable so I
could perhaps have it as a routine, or function to return the date of
any table?
Dim sNAME as String
strPath = Mid(CurrentDb.TableDefs!sNAME.Connect, 11)
Note that the line with the Connect property can use any
table that's linked to the back end db. All tables linked
to the same back end will have the same path in the Connect
property, so, unless there is only one linked table, you do
not need to specify the same table as the one you want to
operate on. But, you can if you want to:
strPath = Mid(CurrentDb.TableDefs(sNAME).Connect, 11)
To refer to the specific TableDef object once the back end
db is opened, use this syntax:
Set tdfB = dbB.TableDefs(sNAME)