I want to detect if any data has changed on the current form and ask the user if they wish to save their data, BEFORE the form looses focus.
I have tried putting the code in the LostFocus and the Deactivate events. However, the message is being displayed AFTER the new form receives focus. Is there a way to display the message in before the next form receives focus?