I 'm trying to connect to MySQL database in Access 2007 Win Xp.
The error is raised at: Set cn = CreateObject("ADODB.Connection")
Error 429 activex can't create object.
My references are:
Visual Basic for Applications
Microsoft Access 12.0 object library
OLE automation
Microsoft Office 12.0 Access database engine
Microsoft ActiveX Data Objects 2.7 Library
I tried many things I found in the internet but nothing worked.
Any suggestion is wellcome.
Code:
Dim strDataBaseName As String
Dim strDBCursorType As String
Dim strDBLockType As String
Dim strDBOptions As String
Dim rs As ADODB.Recordset
Dim cn As ADODB.Connection
On Error GoTo Command1_Click_Error
Dim b As Long
strDBCursorType = adOpenDynamic 'CursorType
strDBLockType = adLockOptimistic 'LockType
strDBOptions = adCmdText 'Options
Set cn = CreateObject("ADODB.Connection")
Error 429 activex can't create object.
My references are:
Visual Basic for Applications
Microsoft Access 12.0 object library
OLE automation
Microsoft Office 12.0 Access database engine
Microsoft ActiveX Data Objects 2.7 Library
I tried many things I found in the internet but nothing worked.
Any suggestion is wellcome.