Which event is the best place to put code that should be run when the user closes a form? I have code in the Unload event of a form that is supposed to send an email and delete all data from a table. It's always worked for two users, but not for a new user. I'm not sure what she did differently. The way they close the form is to click the x button in the control box.
Is there a reason the code should be in the close event rather than the unload event? I've typically used the close event just to check if the user really wants to close the form.
Thanks.
