473,796 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97: How to hide ALL the tool bars?

MLH
The following lines are running when I open my A97 mde file...

If CurrentUser() <> "mlh" Then
Application.Set Option "Show ToolTips", False
Application.Set Option "Key Assignment Macro", "NonExisten t"
Application.Set Option "Built-In ToolBars Available", False
End If

But a toolbar still appears even though these lines have been
processed. Not surprising, really. These lines came from old
Access 2.0 applications and may not be doing anything when
running under A97. Dunno.

What should I be running to hide all the toolbars from the user?
Nov 13 '05 #1
4 2239
You are probably referring to setting the startup properties of the
database. If you want to set them through code, refer to the Access
help at this location:

http://msdn.microsoft.com/library/de...HV05188072.asp

Note, though, that the startup settings are applied only when the
database is opened...what you probably want to do, since you want it to
be based on the user (which would have to happen after the database was
opened), is loop through the CommandBars collection and disable all of
the builtin ones.

Nov 13 '05 #2
MLH
I'm afraid looping through command bars is
something I'm not familiar with. Is there some
sample code out there for that? Or maybe
you can contribute a line or two.
Nov 13 '05 #3
for each cb in commandbars
cb.enabled = false
next

I think that they have a builtin property too, so you could go:

if cb.builtin = true then cb.enabled = false

Nov 13 '05 #4
MLH
Thx, I'll give it a try.
Nov 13 '05 #5

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

Similar topics

1
1496
by: Jamie Schwinn | last post by:
I'm building a web app in asp.net and I'd like to have the IE window hide all of it's toolbars and run with just the title bar showing when the user browses to my internal intranet web app. I know this functionality is possible because MS CRM is able to reconfigure the IE window when the user browses to CRM. CRM has the following lines in web.config... <snip> <appSettings> <!--
4
1659
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
8
4062
by: Just D. | last post by:
Did anybody see the script to hide extra bars in the Internet Explorer? I'd like to start my WebApp with all these bars hidden. How? Thanks, Just D.
1
2181
by: Jamie Schwinn | last post by:
I'm building a web app in asp.net and I'd like to have the IE window hide all of it's toolbars and run with just the title bar showing when the user browses to my internal intranet web app. I know this functionality is possible because MS CRM is able to reconfigure the IE window when the user browses to CRM. CRM has the following lines in web.config... <snip> <appSettings> <!--
3
1843
by: MLH | last post by:
I did not know pressing F-11 key would open database window in a runtime installation. I found it out by accident today. How might I prevent this undesirable event?
4
1792
by: MLH | last post by:
I copied the code example below from A97 HELP. However, I get an error when I try to use something like frmMainMenu.Hide and am uncertain as to why. Ideas? The following example assumes two UserForms in a program. In UserForm1's Initialize event, UserForm2 is loaded and shown. When the user clicks UserForm2, it is hidden and UserForm1 appears. When UserForm1 is clicked, UserForm2 is shown again. ' This is the Initialize event...
3
17044
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 the beginning of my application using VBA and then switch it back on within the exit routine of my application ?
7
2095
by: Andy_Khosravi | last post by:
I use the formatting trick in A97 to simulate conditional formatting in continuous forms. It has, up to this point, worked fine. Today I was making some design changes to the parent form (the continuous form is a sub form within this parent form) when the formatting trick I was using stopped working. What's happening is that the character I use to 'block over' fields and make them appear to be invisible stopped displaying a solid bar...
21
1692
by: mantrid | last post by:
I use <form action="screen.php" target="_blank" method="post"and a submit button to open a new separate window which is simply a display screen. I therefore do not wish to have the address, tool and menu bars displayed. Can I do this from the form script? or would I have to put some HTML script on the page that is to be opened. or is it only possible with java script? Can anyone offer a solution on how to do this?
0
10452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.