Close X on Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hallo

Is there a way you can disable the X to close access so it can only be done
by a EXIT button on a Form i know you can disable the ones on the forms but
not the Access one is it possible.

Markus
 
The way I do it is to put this behind the Unload Event of the form

If Me.Tag <> "OK" then
Cancel = True
end if

In the Code behind the Click of the Close Button put
Me.Tag = "OK"
 
Back
Top