Unrecognized Database Format. Not corrupt!

  • 9 years ago

     Hello,

    I am running VBE2008 and trying to access an Access 2000 database with it. However, I keep getting the error "Unrecognized Database Format" at this line in my code:


    MakeDR.Fill(DataSet1)

     The SQL syntax is fine (it's simply a "SELECT * FROM Datasource.Table"). I have repaired/compacted the database, updated all drivers pertinent, and have now created a test database from scratch, so as far as I understand there is no way for this database to be corrupted.
    The file is part of the project, and is in the proper location in the bin/debug folder. I just can't see what I am doing wrong here! If anyone wants the full code, I would be happy to post it.

    Thanks,
    Rev. BVM

  • 9 years ago
    It might be worth you posting the code, in particular the part where you declare the OleDbConnection and specify the connection string.

    Apart from that, the only other suggestion is to check that you're up to date in terms of MDAC version. 

    Tim 

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne