2 Questions: Code to exit via cmdExit; Code to hide/disable tool b

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

Guest

Would someone please tell me what code to use for:

1)To exit application via
Private sub cmdExit ()
???
End sub

2) To hide/disable tool bars
Private sub Form_Load ()
???
End sub

and to enable them on exit ??? if needs be???
Thank you
 
1)To exit application via
Private sub cmdExit ()
???
End sub
================
Docmd.Quit
================


2) To hide/disable tool bars
Private sub Form_Load ()
???
End sub
===================
DoCmd.ShowToolbar "ToolBarName", acToolbarNo

And it better to use the form Activate event then the load event, just
incase you moving between forms, and this tool bars will be set to yes in
other forms

===================
 
Dear Ofer,
Thank you for your reply. The exit works perfectly.

How do I find a list of what the toolbar names are?
I would like to turn-off all of the Drop-Down menus (not show them),
and turn-off all of the toolbars (not show them) - form view, formatting,
& web
Where do I find out the names of these, or can I turn-off all of them at
once?

Thank you,
Andy
 
Open the MDB, in the menu bar select Tools > startup options > there you can
remove the toolbars.

If then you want to open the MDB and see the toolbars, for development
reasons, open the MDB while the shift key is pressed
 
That does get rid of the toolbars, however it still leaves the Drop-down
menues.
Can I programatically (or otherwise) hide/disable them?
 
It should hide also the menue bar, unless you didn't uncheck it, or mybe yu
can see the menu of Access and not the MDB.
 

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