R
Rob Hofkens
Hello people
When I close a form via the close button I notice that the form is updated
automaticaly when the record is dirty.
I would like the more common way when someone presses the close button while
data has been changed.
I want a dialog box that asks the user to confirm the canclation of the
things he/she has done.
If the users continues then the record is saved if the user canceled then
the record isn't saved.
I tried to use the BeforeUpdate event of the form but I don't know how to
check if the close button has been pressed.
Only in that case the dialog should appear.
Any solution would but apreciated
Thanks in advance,
Rob.
When I close a form via the close button I notice that the form is updated
automaticaly when the record is dirty.
I would like the more common way when someone presses the close button while
data has been changed.
I want a dialog box that asks the user to confirm the canclation of the
things he/she has done.
If the users continues then the record is saved if the user canceled then
the record isn't saved.
I tried to use the BeforeUpdate event of the form but I don't know how to
check if the close button has been pressed.
Only in that case the dialog should appear.
Any solution would but apreciated
Thanks in advance,
Rob.