Hi everyone,
I have a database that retrieve a bunch of data from an external Oracle database through ODBC, it then save them as local tables.
I therefore have a lot of SQL Pass-Through queries. I used to have a manual process of clicking on each query, to retrieve one table at a time. I now managed to code it in VBA, so at the click of a button all the Pass-Through SQL queries will run.
However, now the "Select Data Source" window keep on popping up. Is it possible to have this window only pop up once, let the user set the ODBC connection, then save it as the default so the window won't pop up again.
Also, can anyone tell me how I can do error checking for ODBC errors.
ie. if ODBC returns a error, I can display a message box telling user what to do instead of the default error message.
Thanks,
Hadwin.
I have a database that retrieve a bunch of data from an external Oracle database through ODBC, it then save them as local tables.
I therefore have a lot of SQL Pass-Through queries. I used to have a manual process of clicking on each query, to retrieve one table at a time. I now managed to code it in VBA, so at the click of a button all the Pass-Through SQL queries will run.
However, now the "Select Data Source" window keep on popping up. Is it possible to have this window only pop up once, let the user set the ODBC connection, then save it as the default so the window won't pop up again.
Also, can anyone tell me how I can do error checking for ODBC errors.
ie. if ODBC returns a error, I can display a message box telling user what to do instead of the default error message.
Thanks,
Hadwin.
Last edited: