Hello everybody,
I am trying to connect to a MySQL database from an Visual Basic Excel macro, but I can not make it.
I have done it like it is described here:
http://www.dreamincode.net/forums/showtopic24677.htmMy code:
CODE
Dim sqlConnection As New ADODB.Connection
Dim sqlRecordset As New ADODB.Recordset
sqlConnection.Open "Provider=SQLOLEDB;Data Source=<IP>;Initial Catalog=<DatabaseName>;User Id=<User>;Password=<Password>;"
'...
The program is doing something in the "open" line, but comes back with an error. Message: "[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."
I am not so sure about the connection string, especially about the provider. Used values(<>) are ok. I can connect via MySQL Query Browser.
MySQL-Version: MySQL 4.1.10a-log via TCP/IP
Has anybody an idea what I am doing wrong or what is missing?
Thanks
MrFlow