MS Access: how to compact current database in VBA

后端 未结 13 1612
慢半拍i
慢半拍i 2020-11-29 07:34

Pretty simple question, I know.

13条回答
  •  温柔的废话
    2020-11-29 08:13

    I did this many years back on 2003 or possibly 97, yikes!

    If I recall you need to use one of the subcommands above tied to a timer. You cannot operate on the db with any connections or forms open.

    So you do something about closing all forms, and kick off the timer as the last running method. (which will in turn call the compact operation once everything closes)

    If you haven't figured this out I could dig through my archives and pull it up.

提交回复
热议问题