What is the difference between those two events? If I want to save my data in a DB when the user close the form is it better to put it a the query or the unload? thanks
Printable View
What is the difference between those two events? If I want to save my data in a DB when the user close the form is it better to put it a the query or the unload? thanks
As someone corrected me earlier today.. It's best to put it in QueryUnload
QueryUnload happens before Unload which is before Teminate...
At a deeper level, QueryUnload is triggered before any actions take place, and Unload is triggered right before the from is removed from the screen. Another difference is that QueryUnload is triggered in every form (before any unloadeding is done) whereas Unload is triggered as each individual form is unloaded.