Form_Close

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello!

Is it possible to prevent the user to close a form?
in order to do not give him the opportunity to close the form until the data
is correct..
which property should I use in the event Form_Close

Thanks for any suggestion
 
Form_Close is too late. The bad record has already been saved.

Cancel the BeforeUpdate event of the form if the data is not satisfactory.
You also need to cancel the Unload event of the form to prevent it closing.
 
Thanks!
it works perfect!!!


Allen Browne said:
Form_Close is too late. The bad record has already been saved.

Cancel the BeforeUpdate event of the form if the data is not satisfactory.
You also need to cancel the Unload event of the form to prevent it closing.
 
Back
Top