473,410 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Switch off / Hide Toolbars & Menu Bar from Application using VBA

When my application starts 2 toolbars still remain open

1) Form View and
2) Formatting (Form/Report) Toolbar

Also ... Access's default Menu-Bar also remains open.

How to switch it off at the beginning of my application using VBA and
then switch it back on within the exit routine of my application ?
Best Rgds,
Prakash.

Dec 10 '06 #1
3 16960
I managed to figure it out (trial & error). Here's my code:

Private Sub Form_Load()
CommandBars.ActiveMenuBar.Enabled = False 'Turn Access' Menu Bar
OFF !!
DoCmd.ShowToolbar "Form View", acToolbarNo
DoCmd.ShowToolbar "Formatting (Form/Report)", acToolbarNo

End Sub
However, if someone has any good start-up & clean-up (while exiting)
routines, could you please post it as I'd like to incorporate it into
my package.
Best Rgds,
Prakash.



pr*************@gmail.com wrote:
When my application starts 2 toolbars still remain open

1) Form View and
2) Formatting (Form/Report) Toolbar

Also ... Access's default Menu-Bar also remains open.

How to switch it off at the beginning of my application using VBA and
then switch it back on within the exit routine of my application ?
Best Rgds,
Prakash.
Dec 10 '06 #2
Thanks for this - strangely enough i've just found a use for it
tonight. However the code doesn't work! I still have the menu bar. Is
it working OK for you?
pr*************@gmail.com wrote:
I managed to figure it out (trial & error). Here's my code:

Private Sub Form_Load()
CommandBars.ActiveMenuBar.Enabled = False 'Turn Access' Menu Bar
OFF !!
DoCmd.ShowToolbar "Form View", acToolbarNo
DoCmd.ShowToolbar "Formatting (Form/Report)", acToolbarNo

End Sub
However, if someone has any good start-up & clean-up (while exiting)
routines, could you please post it as I'd like to incorporate it into
my package.
Best Rgds,
Prakash.



pr*************@gmail.com wrote:
When my application starts 2 toolbars still remain open

1) Form View and
2) Formatting (Form/Report) Toolbar

Also ... Access's default Menu-Bar also remains open.

How to switch it off at the beginning of my application using VBA and
then switch it back on within the exit routine of my application ?
Best Rgds,
Prakash.
Dec 10 '06 #3
Ya, it works like a charm for me. Since you mentioned it doesn't work
for you I went into my App & clicked Tools->StartUp->Allow
Toolbar/Menu Changes, then tried checking/unchecking it. But it works
either way for me.

BTW, at the beginning of my App I also hide the database window with :
CurrentDb.Properties("StartupShowDBWindow") = False

Then I switch off the Menu Bar & Tool Bars.

I'm using Access 2003.

Hope this info helps.

Best Rgds,
Prakash.

keri wrote:
Thanks for this - strangely enough i've just found a use for it
tonight. However the code doesn't work! I still have the menu bar. Is
it working OK for you?
pr*************@gmail.com wrote:
I managed to figure it out (trial & error). Here's my code:

Private Sub Form_Load()
CommandBars.ActiveMenuBar.Enabled = False 'Turn Access' Menu Bar
OFF !!
DoCmd.ShowToolbar "Form View", acToolbarNo
DoCmd.ShowToolbar "Formatting (Form/Report)", acToolbarNo

End Sub
However, if someone has any good start-up & clean-up (while exiting)
routines, could you please post it as I'd like to incorporate it into
my package.
Best Rgds,
Prakash.



pr*************@gmail.com wrote:
When my application starts 2 toolbars still remain open
>
1) Form View and
2) Formatting (Form/Report) Toolbar
>
Also ... Access's default Menu-Bar also remains open.
>
How to switch it off at the beginning of my application using VBA and
then switch it back on within the exit routine of my application ?
>
>
Best Rgds,
Prakash.
Dec 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marc Lefebvre | last post by:
Switch the forms of an application. Have you find a sample doing this. Thank's Marc
0
by: Chetna Joshi | last post by:
We have created a Web Application in ASP.NET using VB.NET. We have also created a Web Setup Project for installing the Web application on the target machine. I need help on creating a shortcut to...
3
by: Srinu | last post by:
How do i hide status bar in firefox using java script only Plz help me iam new to this group.
0
by: Leo | last post by:
Hi! is it possible to deploy .net 2 application using OneClick Deployment and add it to autostart?
3
by: anujzcool | last post by:
Hi All, I am working on a win form, and form is a MDI child, and is docked in parent form. I want to hide the main menu(windows automatic menu that is linked to every form) of this form. Is it...
1
by: fivanec | last post by:
Hi everyone, I need to create in Pocket Outlook custom menu item using C# or VB.NET for Windows Mobile 5.0 and then subscribe on the event of that custom menu item to invoke my Windows...
1
by: kirankumarn | last post by:
How to bind menu items in asp:Menu control using SiteMapDataSource from code behind(c#) Thanks in advance
0
nicebasic
by: nicebasic | last post by:
I'm trying to find a way to hide Start Menu (NOT Start Button) in Windows XP through VB 6.0 Code. I know how to do the following: 1. Hiding the Taskbar 2. Hiding the Start Button 3. Renaming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.