Variable MySQL driver version in connection string (1 Viewer)

perlfan

Registered User.
Local time
Today, 00:35
Joined
May 26, 2009
Messages
192
Hi there,



I'm connecting from my Access FE to a MySQL BE database. This is my connection string:
Code:
Constr = "Driver=MySQL ODBC 5.1 Driver;" & _
                   "Server=" & server & ";User = " & user & ";Password = " & pw & ";Database=" & datenbank


Now I would like to make this independent from a specific ODBC driver version so that any installed version will work to establish the connection. For this, the driver must be detected via ODBC. Has anyone ever done this & is there a working solution out there? Thanks for help.


Best, Frank
 

perlfan

Registered User.
Local time
Today, 00:35
Joined
May 26, 2009
Messages
192
Nice, I'll give it a try... thx!
 

Users who are viewing this thread

Top Bottom