Thanks for your site. Great information.
In short, I am trying to execute the following code from Outlook (2007), although it also does not work in Excel. Great access to INSIDE!
Sub Test Dim db As DAO.Database Dim rs As DAO.Recordset Const dbPath As String = "C:\Users\e574651.GLOBAL\Documents\Northwind 2007.accdb" On Error Resume Next Set db = DAO.OpenDatabase(dbPath) 'Set rs = db.OpenRecordset("customers") Debug.Print Err.Number, Err.Description End Sub
3343 The format of the unrecognized database is 'C: \ Users \ e574651.GLOBAL \ Documents \ Northwind 2007.accdb'.
I can access this database during the day without using ADO, and I suspect the problem is the following ADO statement:
ADOConn.Provider = "Microsoft.ACE.OLEDB.12.0"
How to provide this function using DAO?
I have included a link to the DAO 3.6 library in my VBA preferences. I included other Microsoft 12.0 library libraries, so I either bound something or omitted something.
Any help would be greatly appreciated.
Thanks!
source share