473,385 Members | 2,005 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,385 software developers and data experts.

How can i hide menu bar & restore it again?

23
How can i hide menu bar & restore it again IN MS ACCESS DB ?
Nov 11 '13 #1

✓ answered by NeoPa

You can use :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarNo)
& :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarYes)
This can be done, but only if you have something starting automatically when the database opens.

I never use or recommend the use of macros, so that leaves a form. Each form can potentially have an Open event handler. Put the code in there.

4 1321
NeoPa
32,556 Expert Mod 16PB
You can use :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarNo)
& :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarYes)
Nov 11 '13 #2
moonrb
23
Thanks to you friend. Actually I am new in MS ACCESS. I want whenever I enter in my database, menu bar should not show. Please tell me where should I place this code provided by you.....
Nov 12 '13 #3
NeoPa
32,556 Expert Mod 16PB
You can use :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarNo)
& :
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.ShowToolbar(ToolbarName:="Menu Bar", Show:=acToolbarYes)
This can be done, but only if you have something starting automatically when the database opens.

I never use or recommend the use of macros, so that leaves a form. Each form can potentially have an Open event handler. Put the code in there.
Nov 12 '13 #4
moonrb
23
Thanks a lot friend. Now it works.....
Nov 13 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: James | last post by:
HI, I'm looking for a script that will allow users/admins to have a one click backup solution for a MYSQL Database.. 'BACK DATABASE' button, click and its done... The a restore option, that...
1
by: Jerry T | last post by:
How can I backup and restore a MySQL DB WITHOUT USING EXEC() MYSQL MYSQLDUMP ?? If I try running exec() and mysqldump, I get Fork warning errors ..
1
by: VF | last post by:
I am using several menu items from my main menu in my context menu. For some reason, all the menu items that I use in the context menu no longer show up in my main menu! I thought that maybe the...
3
by: prakashwadhwani | last post by:
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...
0
by: Puja | last post by:
hi all, I have asp.net menu control on my page. I want to hide some menu and sub-menu items dynamically depending on user. (i.e after user is logged in) is there any property like ...
2
by: sunsoffun | last post by:
Im trying to hide a menu column using jscript. Its works as required in firefox but ie.. a big no no. Please see the code below.... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
1
by: sunsoffun | last post by:
Im trying to hide a menu column using jscript. Its works as required in firefox but ie.. a big no no. Please see the code below.... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
9
by: Ananthu | last post by:
Hi I have a database named textile.I have 10 tables in it.I have used the following command to backup my database as SQL Script file, mysqldump -u sa -p textile>textile.sql The above command...
0
by: blasted | last post by:
Hi all, I need to backup and restore a DB. In this particular case the data in the database is not important (strange hum...) but only the schema to put new data... I m thinking use the...
1
colinod
by: colinod | last post by:
I have a menu that is using the following to show and hide the menu $(document).ready(function(){ // Hide all unordered lists that are descended from the navigation $("#nav...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.