This is extremely easy, but something you just can't seem to put your finger on. Here is the code for knowing when that little X is pushed. It should be self-explainatory!
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
End Sub
Copyright ©2000 by Kyle Baker. Please read our disclaimer.