Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Unrecognized Database Format Error Message with Access 2000 Databases

Total Hit ( 2685)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


The standard DAO Data control is designed to work with the Jet 3.5 Engine, whereas Access 2000 database can be accessed only by the more recent Jet 3.6 engine. For this reason, any attempt to access an Access 2000 database using the standard DAO Data control, as well as regular DAO commands, is doomed to failure and will raise run-time error 3343 "Unrecognized Database Format".

The only way to work around this issue is to open manually the database using the Microsoft DAO 3.6 Object Library, instead of the older Microsoft DAO 3.51 Object Library. If you are working with a Data control you can open the desire Recordset and assign it to the Recordset property of the Data control, as in:

Click here to copy the following block
' this code assumes that you added a reference
' to the Microsoft DAO 3.6 Object Library
Dim db As Database, rs As Recordset
Set db = DBEngine.OpenDatabase("c:\data\yourdb.mdb")
Set rs = db.OpenRecordset("TableName")
Set Data1.Recordset = rs

If you're accessing the Access 2000 database using ADO or the ADO Data control, you can get a run-time error -2147467259 "Unrecognized Database Format" if you use the Microsoft.Jet.OLEDB.3.51 provider, which is the OLEDB provider that is automatically installed with VB. You can fix this error by simply upgrading to the Microsoft.Jet.OLEDB.4.0 provider.



Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.