Hi all,
Is there a way to tell if the user has pressed the exit button on Access itself? (The red cross in the top right corner). I've run into an issue where if the user hits this button, the currently open form fires form_load which in turn is opening a dialog box. Due to the dialog box opening, Access then just locks up requiring to be closed via Task Manager.
Basically, the user opens this form. If no arguments are supplied, a dialog comes up to search customers. If arguments do get supplied (the user is opening this form from another), the box won't appear. If I know what's firing the form_load, in my mind anyway, I can incorporate this event into my if statement that controls whether the dialog opens or not.
Thoughts?
Is there a way to tell if the user has pressed the exit button on Access itself? (The red cross in the top right corner). I've run into an issue where if the user hits this button, the currently open form fires form_load which in turn is opening a dialog box. Due to the dialog box opening, Access then just locks up requiring to be closed via Task Manager.
Basically, the user opens this form. If no arguments are supplied, a dialog comes up to search customers. If arguments do get supplied (the user is opening this form from another), the box won't appear. If I know what's firing the form_load, in my mind anyway, I can incorporate this event into my if statement that controls whether the dialog opens or not.
Thoughts?