Results 1 to 3 of 3

Thread: 'Unrecognized database format' error after CreateDatabase

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    23

    Post

    I use the following code to create a new Access database.

    Dim db As DAO.Database
    Set db = DBEngine.CreateDatabase ("C:\New.mdb", dbLangGeneral)

    That creates the database, however, when I go to Access and try to open it, I get an error saying 'Unrecognized database format 'C:\New.mdb'.

    Anyone have any clue what might be going on?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    What version of DAO are you using? Version of MS Access? did you try removing the dbLangGeneral Parameter?

  3. #3
    New Member
    Join Date
    Nov 1999
    Location
    PA
    Posts
    2

    Post

    A database must contain tables before you can open it. Did you create tabledefs, fields, etc. and append them to the database object? Lots of code in the MSDN to show you how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width