A
Angus
In VBA I need to have a string value with the location of the linked
database. Currently I have this code:
strTableName As String
strTableName = "MyTableName"
strSourcePath = Mid$(CurrentDb.TableDefs(strTableName).Connect, InStr(1,
CurrentDb.TableDefs(strTableName).Connect, "=") + 1)
This works but I would like to remove the need to name a table, with VBA
looking at the table set. All tables are linked to just one database.
Help?
Thanks in advance.
database. Currently I have this code:
strTableName As String
strTableName = "MyTableName"
strSourcePath = Mid$(CurrentDb.TableDefs(strTableName).Connect, InStr(1,
CurrentDb.TableDefs(strTableName).Connect, "=") + 1)
This works but I would like to remove the need to name a table, with VBA
looking at the table set. All tables are linked to just one database.
Help?
Thanks in advance.