• How to compact a database programatically (2002 SP3)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to compact a database programatically (2002 SP3)

    Author
    Topic
    #414170

    What I really want to do is issue the following command

    DoCmd.RunCommand acCmdCompactDatabase

    However, when I do, I get an error messager saying that I cannot from a Macro or VBA and I should “click on Tools, compact & repair”

    I presume that this is “by design” (and begs the question of why Microsoft provide acCmdCompactDatabase as an option) grin

    Are there any automated ways of compacting?

    Viewing 0 reply threads
    Author
    Replies
    Viewing 0 reply threads
    Reply To: How to compact a database programatically (2002 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: