R
Randy K.
I have a form that starts in a listbox that has an onexit procedure defined
to ensure an item in the list is selected before continuing. If an item
isn't selected, a msgbox appears and the exit is canceled. But, when the
form is just opened and then closed (via clicking the 'X' or double-clicking
the forms icon), I don't want the procedure to run or want to put an if
statement in the procedure to skip the validation check.
How do I know, via code, that the X has been clicked or icon double clicked
so I can skip all processing and let the form close without msgbox(es) to
users?
TIA,
Randy
to ensure an item in the list is selected before continuing. If an item
isn't selected, a msgbox appears and the exit is canceled. But, when the
form is just opened and then closed (via clicking the 'X' or double-clicking
the forms icon), I don't want the procedure to run or want to put an if
statement in the procedure to skip the validation check.
How do I know, via code, that the X has been clicked or icon double clicked
so I can skip all processing and let the form close without msgbox(es) to
users?
TIA,
Randy