G
Guest
Here is my scenario:
I got a main form with a subform. I got an exit button on my main form. I
would like to prompt the user whether they want to save changes after editing
the subform before they exit. If they answer no, the subform will undo all
the changes.
I have thought of two solution. Solution 1 is when they click on exit, I
would check if the subform is dirty. However, I couldn't get this to work.
Solution 2 is when the subform lost focus, I would check if the subform is
dirty. This didn't work either.
Does anyone know a way I can get these to work? I would prefer a solution
similar to Solution 1 if its possible.
I got a main form with a subform. I got an exit button on my main form. I
would like to prompt the user whether they want to save changes after editing
the subform before they exit. If they answer no, the subform will undo all
the changes.
I have thought of two solution. Solution 1 is when they click on exit, I
would check if the subform is dirty. However, I couldn't get this to work.
Solution 2 is when the subform lost focus, I would check if the subform is
dirty. This didn't work either.
Does anyone know a way I can get these to work? I would prefer a solution
similar to Solution 1 if its possible.