Open connection to MySQL from VBA Excel 2007
I got this error when try to connect Excel and MySQL using ODBC DataSource name not found and no default driver specified Here is my VBA code: Sub test123() ' Connection variables Dim conn As New ADODB.Connection Dim server_name As String Dim database_name As String Dim user_id As String Dim password As String ' Table action variables Dim i As Long ' counter Dim sqlstr As String ' SQL to perform various actions Dim table1 As String, table2 As String Dim field1 As String, field2 As String Dim rs As ADODB.Recordset Dim vtype As Variant '-----------------------------------------------------------
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.