dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to solve the problem "unrecognised database format '\database.mbd'"

  1. #1
    Join Date
    May 2006
    Posts
    2

    How to solve the problem "unrecognised database format '\database.mbd'"

    Hai friends,
    I want to bring database.mbd in VB6. I have updated DAO6.0, loaded Data form wizard and data object wizard. I have already loaded latest service pack 6. Please let me know what more I have to do.

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    It really depends upon what is generating the error. I would check with the following MS KB article:

    PRB: Error "Unrecognized Database Format" When You Upgrade to Access 2000 or 2002
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    May 2006
    Posts
    2
    how to open DAO3.6 recordset???

  4. #4
    Join Date
    Dec 2003
    Posts
    2,750
    First step is to add the Microsoft DAO 3.6 Object Library reference to your project. After that the following code should work:

    Code:
    Dim db As DAO.Database
    Dim rs As DAO.Recordset
    
    'Open database using default Workspace
    Set db = DBEngine.Workspaces(0).OpenDatabase("d:\My Documents\db1.mdb")
    'Open table type Recordset
    Set rs = db.OpenRecordset("Table1", dbOpenTable)
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Similar Threads

  1. i have problem with date format
    By hotshots in forum VB Classic
    Replies: 14
    Last Post: 03-06-2006, 08:14 AM
  2. VB6 database problem
    By shuvo in forum VB Classic
    Replies: 6
    Last Post: 08-12-2005, 01:57 PM
  3. getting unrecognised database format
    By Peter in forum VB Classic
    Replies: 2
    Last Post: 06-14-2002, 09:45 AM
  4. Facing Problem with Database connection
    By Venkat in forum ASP.NET
    Replies: 0
    Last Post: 07-04-2001, 12:37 AM
  5. Database access problem in WinNT
    By jon byrd in forum VB Classic
    Replies: 1
    Last Post: 08-01-2000, 01:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center