次の方法で共有


CloseDatabase マクロ アクション

適用先: Access 2013、Office 2013

"CloseDatabase/データベースを閉じる" アクションを使用すると、カレント データベースを閉じることができます。

設定

"CloseDatabase/データベースを閉じる" アクションには、引数はありません。

注釈

  • マクロの中で "CloseDatabase/データベースを閉じる" アクションより後に設定されたアクションは実行されません。

  • このアクションは、[ ファイル ] タブをクリックしてから [ データベースを閉じる] をクリックした場合と同じ効果があります。 If there are any unsaved objects open when you run the CloseDatabase action, the dialog boxes that appear are the same as those displayed when you click Close Database.

  • To run the CloseDatabase action in a Visual Basic for Applications (VBA) module, use the CloseDatabase method of the DoCmd object.