Hi,
I have a few Passthrough queries, which function via an odbc connection. With VBA, I have a form where I can update the queries using query Defs.
What I've noticed, is that when I start the program fresh, it will give me an ODBC error, however, if I go to my queries and execute one by clicking on it, then the connection is created successfully and my application works without any odbc error. So by manually coughing a pass through query, the connection is created. How can I do that in VBA, since the error is a little tedious.
I presume I'll have to somehow initiate the odbc connection somehow
I have a few Passthrough queries, which function via an odbc connection. With VBA, I have a form where I can update the queries using query Defs.
What I've noticed, is that when I start the program fresh, it will give me an ODBC error, however, if I go to my queries and execute one by clicking on it, then the connection is created successfully and my application works without any odbc error. So by manually coughing a pass through query, the connection is created. How can I do that in VBA, since the error is a little tedious.
I presume I'll have to somehow initiate the odbc connection somehow