I need to create a code that will pop a message box asking if the user want to save the change or not after they have edited the form when they are leaving the forms either by X in top corner or by going to a different forms. I try to use the after update and before update but no luck here. I create a global variable that is in before update and after update. The flag is check in the deactivation event but still close it down when i exit the form. any suggestion or code would be greatly appreciated.
thanks in advance
thanks in advance