D
Daniel
Good morning,
I would like to be able to change the path of all the linked tables in the
front-end of my application so that when I deliver it to our secondary site,
it is ready to go. \
I tried the following code that came from another post, but it generates an
error "Compile error: Expected: =" and yet it compiles just fine?
****
Dim db As DAO.database
Dim tdf As DAO.TableDef
Dim strPath As String
strPath = "C:\test\testdb.mdb"
Set db = CurrentDb()
Set tdf = db.TableDefs!linkedtable
tdf.Connect = ";DATABASE=" & strPath
tdf.RefreshLink
Set tdf = Nothing
Set db = Nothing
****
Is it possible to change the path to a structure/dir that does not exists on
the computer I am working on?
Thank you for your help!
Daniel
I would like to be able to change the path of all the linked tables in the
front-end of my application so that when I deliver it to our secondary site,
it is ready to go. \
I tried the following code that came from another post, but it generates an
error "Compile error: Expected: =" and yet it compiles just fine?
****
Dim db As DAO.database
Dim tdf As DAO.TableDef
Dim strPath As String
strPath = "C:\test\testdb.mdb"
Set db = CurrentDb()
Set tdf = db.TableDefs!linkedtable
tdf.Connect = ";DATABASE=" & strPath
tdf.RefreshLink
Set tdf = Nothing
Set db = Nothing
****
Is it possible to change the path to a structure/dir that does not exists on
the computer I am working on?
Thank you for your help!
Daniel