Close X on Access

M

Markus

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
 
D

Dennis

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"
 
Top