Air_Cooled_Nut
New Member
- Joined
- Oct 8, 2004
- Messages
- 36
I'm not sure if this belongs in the Access forum but the issue is occurring within Excel.
Snippet of Excel code:
Dim moConn As ADODB.Connection, moRecordset As ADODB.Recordset
Set moConn = New ADODB.Connection
Set moRecordset = New ADODB.Recordset
moConn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & sSource & ";Extended Properties=Excel 8.0;Persist Security Info=False"
I'm getting the following error when the moConn.Open line is hit:
-2147220999 Method 'Open' of object '_Connection' failed
The error description for the number is "Error in the DLL".
I'm running Windows XP SP3, Excel 2003, Access 2007, MDAC 2.8 SP1. References used (in order):
Visual Basic For Applications
Mircorsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object Library
Microsoft OLE DB provider for OLAP Services connection dialog 8.0
Microsoft ActiveX Data Objects 2.8 Library
There's no security around the database (no login/password).
What is wrong and how do I fix it? I've searched the web with many dead-ends & no solutions/fixes so I'm hoping this has happened with someone else and they found a solution...or at least a reason.
Snippet of Excel code:
Dim moConn As ADODB.Connection, moRecordset As ADODB.Recordset
Set moConn = New ADODB.Connection
Set moRecordset = New ADODB.Recordset
moConn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & sSource & ";Extended Properties=Excel 8.0;Persist Security Info=False"
I'm getting the following error when the moConn.Open line is hit:
-2147220999 Method 'Open' of object '_Connection' failed
The error description for the number is "Error in the DLL".
I'm running Windows XP SP3, Excel 2003, Access 2007, MDAC 2.8 SP1. References used (in order):
Visual Basic For Applications
Mircorsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object Library
Microsoft OLE DB provider for OLAP Services connection dialog 8.0
Microsoft ActiveX Data Objects 2.8 Library
There's no security around the database (no login/password).
What is wrong and how do I fix it? I've searched the web with many dead-ends & no solutions/fixes so I'm hoping this has happened with someone else and they found a solution...or at least a reason.