When deploying a small Excel VBA code to access a .accdb 2010 database to my colleague, who is running Excel 2007. I get the following error
run-time error '-2147467259 (80004005)':
Unrecognized database format '\dbname.accdb'
I'm pretty stuck on this bug as it works in Excel 2010, but not in excel 2007? My DB connection code is below:
' Declarations
Dim conn As Object
Dim rs As Object
Dim strConnect As String
Dim strng As String
' Open Database
Set conn = CreateObject("ADODB.Connection")
' Define the connection String
strConnect = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & _
Glo_Database_Path & ";"
' Open Connection
conn.Open strConnect
Any ideas how to connect to an accdb 2010 from Excel 2007 64bit?