FancyPrairie
Programmer
I'm trying to create a routine that will relink my tables from a Live database to a Test database and visa-versa. My code works if both databases are SQL databases. Or if both databases are Access databases. However, I can't get it to work if, for example, the Live database is a SQL database and the Test databases is an Access database.
Any ideas?
In this example, I'm attempting to relink from a SQL database to a Access database. Note that prior to executing this code, the Jet OLEDB:Link Provider String contains the connection string to the SQL database and Jet OLEDB:Link Datasource is blank
I don't receive any errors but the connection is not made.
Any ideas?
In this example, I'm attempting to relink from a SQL database to a Access database. Note that prior to executing this code, the Jet OLEDB:Link Provider String contains the connection string to the SQL database and Jet OLEDB:Link Datasource is blank
Code:
tbl.Properties("Jet OLEDB:Link Provider String") = ""
tbl.Properties("Jet OLEDB:Link Datasource") = "\\path\BEdatabase.mdb"
I don't receive any errors but the connection is not made.