0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Accessのフォームを閉じる時に発生する3つのイベント

Last updated at Posted at 2024-07-25

概要

Accessのフォームを閉じる時は『閉じる時』という名前のイベント以外も発生します。
『閉じる時』イベント以外は使うことあまりなくて、忘れがちなのでまとめ。

どんなイベントが どの順番で 実行されるのか。

発生するイベント

① Form_Unload()

まずは『読み込み解除時』が発生します。
image.png

② Form_Deactivate()

次に『非アクティブ時』。
image.png

③ Form_Close()

最後に『閉じる時』。
image.png

蛇足

逆に開く時のイベントを知りたい時は下記。

参考サイトさん

バージョン

Microsoft Windows [Version 10.0.22631.3880]
Microsoft Access for Microsoft 365 MSO (バージョン 2406 ビルド 16.0.17726.20078) 32 ビット

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?