Results 1 to 6 of 6
  1. #1
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Turn off Command Menu Bar completely (Win2K, Access2K)

    We are working on a form where we would like to turn off the command menu bar completely. We can do it by making the form a pop-up, but that causes problems with other forms that are opened from that form. We can assign an illegal toolbar to the form, which gives us a completely blank menu bar, except for the control boxes, all of which we can turn off but the restore button, but we can't actually make it disappear so we can use just a toolbar in place of a menu bar. Does anybody have any insights that might help us? Thanks in advance.
    Wendell

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turn off Command Menu Bar completely (Win2K, Access2K)

    Hi Wendell,

    This suggestion assumes that I use the same terminology that you do: Menu bar = File, Edit, View, etc...

    An idea would be to place your buttons and the like on a newly created Menu bar (instead of the menus). Then assign it as the form's Menu Bar (without any assigned toolbar).

    HTH <img src=/S/salute.gif border=0 alt=salute width=15 height=20>

  3. #3
    Star Lounger
    Join Date
    Dec 2001
    Location
    Birmingham, Alabama USA
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turn off Command Menu Bar completely (Win2K, Access2K)

    I hope I understand what menu you mean ......

    This line will remove the Main Menu Bar

    DoCmd.ShowToolbar "Menu Bar", acToolbarNo

    Just use "acToolbarYes" argument to make it appear again.

    HTH
    RDH
    Ricky Hicks
    Microsoft MVP
    Birmingham, Alabama USA

  4. #4
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: Turn off Command Menu Bar completely (Win2K, Access2K)

    Well done! <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30> We had butted heads on a problem related to this for several days - and this very neatly solves it and eliminates a bunch of API calls and other stuff to get around problems with modality and pop-up windows. Thanks so much <img src=/S/heart.gif border=0 alt=heart width=15 height=15> - sometimes it's hard to see a tree in the forest for all the trees, or something like that!
    Wendell

  5. #5
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turn off Command Menu Bar completely (Win2K, Access2K)

    I have also created custom menu bars for a person depending on their login id. Example: I remove DB Admin commend items from normal users.

    Mark Santos

  6. #6
    Star Lounger
    Join Date
    Dec 2001
    Location
    Birmingham, Alabama USA
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turn off Command Menu Bar completely (Win2K, Access2K)

    You are very welcome.... <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    I was just hoping I understood the question .... LOL

    RDH
    Ricky Hicks
    Microsoft MVP
    Birmingham, Alabama USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •