Can I disable ("X") that closes MSAccess in banner of database?

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

Guest

In a custom application, I don't want the user to be able to close Access
unless he uses macros on my form. Can I disable or hide the control box in
the blue MSAccess banner at the very top of the window?
 
not directly (standard windows feature)
you can either use API calls (might be at www.mvps.org/access)
or
write code in the unload event of your main (switchboard) form to cancel the
event if a "flag" is not set
I would however reccomend using the unload event to fire any cleanup code
instead to stay with windows standards

HTH

Pieter
 

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

Back
Top