BarryStevenson
New Member
- Joined
- Dec 31, 2008
- Messages
- 1
Hi Guys,
I am building an application for Excel 2003 which pulls data from an Access 2007 database using an ADO connection. I have successfully tested this using Excel 2007 in 2003 compatibility mode using :
strPathName = ThisWorkbook.Path
MyConn = strPathName & "\Test.accdb"
Set cnn = New ADODB.Connection
With cnn
.Provider = "Microsoft.ACE.OLEDB.12.0"
.Open MyConn
End With
When I try running this using Excel 2003, I get the following error message:
Run-time error 3706
Provider cannot be found. It may not be properly installed.
I checked the VBA Project references, it references Microsoft ActiveX Data Objects 2.8 Library.
Does anyone have any ideas?
I am building an application for Excel 2003 which pulls data from an Access 2007 database using an ADO connection. I have successfully tested this using Excel 2007 in 2003 compatibility mode using :
strPathName = ThisWorkbook.Path
MyConn = strPathName & "\Test.accdb"
Set cnn = New ADODB.Connection
With cnn
.Provider = "Microsoft.ACE.OLEDB.12.0"
.Open MyConn
End With
When I try running this using Excel 2003, I get the following error message:
Run-time error 3706
Provider cannot be found. It may not be properly installed.
I checked the VBA Project references, it references Microsoft ActiveX Data Objects 2.8 Library.
Does anyone have any ideas?