ralphyehle
Registered User.
- Local time
- Today, 03:50
- Joined
- Aug 28, 2002
- Messages
- 22
Excel 2010 - Microsoft Access Driver question
upgraded Excel to 2010 and Access to 2007 from 2003 and now this code produces error message: [Microsoft][ODBC Driver Manger] Data source name not found and no default driver specified - How do I fix this?
Private Sub btnPageLoad_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
On Error GoTo Err_btnPageLoad_DblClick
Dim MyCn As ADODB.Connection
Dim SQLStr As String
Set MyCn = New ADODB.Connection
MyCn.Open "DRIVER={Microsoft Access Driver (*.accdb)}; DBQ= S:\QCR\Worksheet\Data\QCRData FY2011.accdb"
' Replace actual Access file path here - I changed the (*.accdb) back to (*.mdb) and the Access file back to .mdb and was able to export okay. Problem seems to be with the Driver={Microsoft Access Driver (*.accdb} which isn't recognized. What's the problem?
upgraded Excel to 2010 and Access to 2007 from 2003 and now this code produces error message: [Microsoft][ODBC Driver Manger] Data source name not found and no default driver specified - How do I fix this?
Private Sub btnPageLoad_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
On Error GoTo Err_btnPageLoad_DblClick
Dim MyCn As ADODB.Connection
Dim SQLStr As String
Set MyCn = New ADODB.Connection
MyCn.Open "DRIVER={Microsoft Access Driver (*.accdb)}; DBQ= S:\QCR\Worksheet\Data\QCRData FY2011.accdb"
' Replace actual Access file path here - I changed the (*.accdb) back to (*.mdb) and the Access file back to .mdb and was able to export okay. Problem seems to be with the Driver={Microsoft Access Driver (*.accdb} which isn't recognized. What's the problem?
Last edited: