Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    Belgium
    Posts
    2

    Red face Unanswered: CDaoWorkspace::CompactDatabase return error 'unrecognisable database format'

    Hi All,

    I'm using an access 2000 database behind my MFC c++ application.
    I used the automatic autocompact and repair function in the DAO
    to automatically compact the database after a given number of days.

    However, lately I keep getting an error 'Unrecognisable database format' when running the function CDaoWorkspace::CompactDatabase.
    The strange thing is that when I manually do the compact and repair
    in access, everything goes fine... weird isn't it...

    If anybody has any idea, you would help me a lot.
    Thx in advance.

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Try to use
    DBEngine.CompactDatabase AlteDb, NeueDb, Schema, Optionen, Password

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Originally posted by hammbakka
    Try to use
    DBEngine.CompactDatabase AlteDb, NeueDb, Schema, Optionen, Password
    I forot to say, that DBEngine.CompactDatabase must be used for a closed database i.e not for the currecnt opend one.

Posting Permissions

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