Close X on Access

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
 
G

Guest

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top