Home » questions » I want to know when the MSFT Access program is closed in visual basic and do some code before it exi

I want to know when the MSFT Access program is closed in visual basic and do some code before it exi

2006-08-14 10:49:49, Category: Programming & Design
I want to be able to detect when the user presses the 'X' on the top right corner so I can have visual basic do some code before it exits. Like tell them to save or discard changes.

Answers

  1. Special Ed

    On 2006-08-14 10:58:01


    Use the Form_Unload procedure. You should be able to put some code in there to test for changes and whatnot. Good luck!