Command Menu in Access 2007

M

Mike Z.

I was able to use the below code to disable the Exit and Close option from
the file menu so user had to exit the program through my main menu form in
Access 2003 but it will not work in Access 2007. Any ideas how can I
accomplish in Access 2007?

Application.CommandBars("File").Controls("Exit").Enabled = False
Application.CommandBars("File").Controls("Close").Enabled = False

Thanks
 

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