I am dealing with a legacy VB6 app that has an Access backend. The db contains a linked table. The primary db file are each in their own directory. For example
C:\My Location\ABC\db_abc.mdb
C:\My Location\XYZ\db_xyz.mdb
db_abc.mdb links to a table in db_xyz.mdb.
Is there a way to have Access to store the relative path?
I have tried to programmatically edit the field (MSysObjects.Database) that contains the location of the database that contains the table that is linked to. I am able to open a connection, create the required recordset but I have not succeeded in updating the record.
I receive the following error message: "Operation must use an updateable query". In the db I have gone to Tools | Security | User and Group Permissions and set the permissions for MSysObjects to allow read/write etc.
Any suggestions or other options for changing the value of the location of the linked table in the MSysObjects table? Is there a way of having Access store the link path as a relative path? Any other suggestions?
C:\My Location\ABC\db_abc.mdb
C:\My Location\XYZ\db_xyz.mdb
db_abc.mdb links to a table in db_xyz.mdb.
Is there a way to have Access to store the relative path?
I have tried to programmatically edit the field (MSysObjects.Database) that contains the location of the database that contains the table that is linked to. I am able to open a connection, create the required recordset but I have not succeeded in updating the record.
I receive the following error message: "Operation must use an updateable query". In the db I have gone to Tools | Security | User and Group Permissions and set the permissions for MSysObjects to allow read/write etc.
Any suggestions or other options for changing the value of the location of the linked table in the MSysObjects table? Is there a way of having Access store the link path as a relative path? Any other suggestions?