Ok, here is the issue...
I've written an add-in that is used in a couple of locations. In each location, users have an ODBC connection to a database. The name of that ODBC connection is the same at each location.
However, the name of the actual database that it connects to varies...
For instance, in one location it is "Database"
But in another location it is "DATABASE"
The database holds the same information at both locations, but I've found my queries are case sensitive when it comes to establishing a connection.
Right now, I'm getting around it by using an inputbox, bt there has to be a better way...
Is there any way to use VBA to look at an existing ODBC connection and then get the name of the DB from there?
Any help or advice is appreciated.
I've written an add-in that is used in a couple of locations. In each location, users have an ODBC connection to a database. The name of that ODBC connection is the same at each location.
However, the name of the actual database that it connects to varies...
For instance, in one location it is "Database"
But in another location it is "DATABASE"
The database holds the same information at both locations, but I've found my queries are case sensitive when it comes to establishing a connection.
Right now, I'm getting around it by using an inputbox, bt there has to be a better way...
Is there any way to use VBA to look at an existing ODBC connection and then get the name of the DB from there?
Any help or advice is appreciated.