• DBEngine.CompactDatabase (Access 2K SP3)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » DBEngine.CompactDatabase (Access 2K SP3)

    Author
    Topic
    #412995

    My Access program has a line
    DBEngine.CompactDatabase……
    to compact a database.
    The line worked fine in a machine with Access 2000 SP3 and WinXP Pro SP2, but crashed in a machine with Access 2000 SP3 and Windows XP Home SP2. Can anyone give me a clue why it happened this way?

    Viewing 1 reply thread
    Author
    Replies
    • #907772

      Is the problem consistent, i.e. does it always crash? Have you tried it on other PC’s with Windows XP Home?

    • #907773

      Is the problem consistent, i.e. does it always crash? Have you tried it on other PC’s with Windows XP Home?

      • #907780

        Yes, the crash is consistent. I didn’t try it on another Windows XP Home machine as I don’t have one available at the moment. Perhaps I should try. But the “problem” line worked fine in all the WinXP Pro machines as well as Win98 machines that run the Access program.

        • #907789

          I doubt that Windows XP Home itself is the culprit (although I cannot be sure about this)

          Has the latest service pack for Jet 4.0 been installed on the Windows XP Home PC? See How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine for details.

          • #908205

            After scratching my head and wasting your precious time in answering my posts, I managed to solve the problem. It wasn’t Windows XP Home nor the version of my MSJet, it was the corrupted back-end data! I actually and simply copied the original data from a WinXP Pro machine to my WinXP Home machine and did some data entry. Then the DBEngine.CompactDatabase surfaced. When I browsed through separately the back-end database with Access, some records had “Invalid bookmark” problem. After replacing the corrupted database with the original one, DBEngine.CompactDatabase works as expected.

            Now is my time to find out why the database got corrupted….

            Thanks for your reponse, Hans.

          • #908206

            After scratching my head and wasting your precious time in answering my posts, I managed to solve the problem. It wasn’t Windows XP Home nor the version of my MSJet, it was the corrupted back-end data! I actually and simply copied the original data from a WinXP Pro machine to my WinXP Home machine and did some data entry. Then the DBEngine.CompactDatabase surfaced. When I browsed through separately the back-end database with Access, some records had “Invalid bookmark” problem. After replacing the corrupted database with the original one, DBEngine.CompactDatabase works as expected.

            Now is my time to find out why the database got corrupted….

            Thanks for your reponse, Hans.

        • #907790

          I doubt that Windows XP Home itself is the culprit (although I cannot be sure about this)

          Has the latest service pack for Jet 4.0 been installed on the Windows XP Home PC? See How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine for details.

      • #907781

        Yes, the crash is consistent. I didn’t try it on another Windows XP Home machine as I don’t have one available at the moment. Perhaps I should try. But the “problem” line worked fine in all the WinXP Pro machines as well as Win98 machines that run the Access program.

    Viewing 1 reply thread
    Reply To: DBEngine.CompactDatabase (Access 2K SP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: