Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

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

Discussion in 'Information Technology' started by AndyG, Jul 28, 2006.

  1. AndyG

    AndyG
    Expand Collapse
    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
     
  2. Loading...

    Similar Threads Forum Date
    Marriage And Discrimination Related Questions Blogs Mar 21, 2016
    Entering into Sikhism: Questions on Reht Maryada. Blogs Oct 22, 2015
    A Few Questions About Racism, Prejudice, Sikh, Sikhi, Sikhism Questions and Answers Mar 30, 2015
    Questions From A Non-sikh Questions and Answers Mar 23, 2015
    Questions... Sikhism And Saiva Siddhanta New to Sikhism Feb 8, 2015

  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    > 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

    ===================
     
  4. AndyG

    AndyG
    Expand Collapse
    Guest

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

    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

    "Ofer Cohen" wrote:

    > > 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
    >
    > ===================
     
  5. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

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

    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

    --
    Good Luck
    BS"D


    "AndyG" wrote:

    > 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
    >
    > "Ofer Cohen" wrote:
    >
    > > > 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
    > >
    > > ===================
     
  6. AndyG

    AndyG
    Expand Collapse
    Guest

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

    That does get rid of the toolbars, however it still leaves the Drop-down
    menues.
    Can I programatically (or otherwise) hide/disable them?

    "Ofer Cohen" wrote:

    > 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
    >
    > --
    > Good Luck
    > BS"D
    >
    >
    > "AndyG" wrote:
    >
    > > 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
    > >
    > > "Ofer Cohen" wrote:
    > >
    > > > > 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
    > > >
    > > > ===================
     
  7. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

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

    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.


    --
    Good Luck
    BS"D


    "AndyG" wrote:

    > That does get rid of the toolbars, however it still leaves the Drop-down
    > menues.
    > Can I programatically (or otherwise) hide/disable them?
    >
    > "Ofer Cohen" wrote:
    >
    > > 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
    > >
    > > --
    > > Good Luck
    > > BS"D
    > >
    > >
    > > "AndyG" wrote:
    > >
    > > > 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
    > > >
    > > > "Ofer Cohen" wrote:
    > > >
    > > > > > 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
    > > > >
    > > > > ===================
     

Share This Page