Hello All,
I have an mdb Access database that uses two link tables from two different SQL servers with ODBC. Now my problem is that the decision has been made to not use ODBC because of ODBC errors that have occured for no apparant reason at a customer's site. The links have been recreated and the program is running fine, but they still want to make sure this doesnt happen again. I solved the problem with another Access file by switching over to ADP and it works beautifully, yet it only has one data source. Now how do I directly connect to two SQL servers at the same time so I can perform a union and create a report since it seems to only allow one connection?
I know I can connect directly through code using a connect string, is there a way to make certain stored procedures use a connection from the VBA code? Or, is there a way to run a query through VBA and somehow specify that as a record source for the report?
Any help would be greatly appreciated. Thanks.
I have an mdb Access database that uses two link tables from two different SQL servers with ODBC. Now my problem is that the decision has been made to not use ODBC because of ODBC errors that have occured for no apparant reason at a customer's site. The links have been recreated and the program is running fine, but they still want to make sure this doesnt happen again. I solved the problem with another Access file by switching over to ADP and it works beautifully, yet it only has one data source. Now how do I directly connect to two SQL servers at the same time so I can perform a union and create a report since it seems to only allow one connection?
I know I can connect directly through code using a connect string, is there a way to make certain stored procedures use a connection from the VBA code? Or, is there a way to run a query through VBA and somehow specify that as a record source for the report?
Any help would be greatly appreciated. Thanks.