If you are using Microsoft ActiveX Data Objects (ADO) (or the ADO Data Control), you receive the following error message:
Run-time error -2147467259 Unrecognized Database Format XXX
Run-time error 3343 Unrecognized Database Format XXX
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Option Explicit
Private daoDB36 As Database
Private rs As DAO.Recordset
Dim sPath As String
Private Sub Form_Load()
sPath = _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb"
Set daoDB36 = DBEngine(0).OpenDatabase(sPath)
Set rs = daoDB36.OpenRecordset("Customers")
Set Data1.Recordset = rs
End Sub
Keywords: kbctrl, kbjet, kbprb, kbtophit, KB238401