Reactiviate Full Menus

J

jsccorps

On startup Full Menus is turned off. I want to use a 'backdoor' (not the
shift key) to allow access to the Full Menu. Looking for VB code that will
do this.
Would like to use a sequence of key strokes (e.g., <ctrl> <shft> <7>) to
initiate the code.
 
A

Albert D. Kallal

I would think that the shift key on launching is about the best solution\
for developing here.

Any developers worth their salt is going to distribute a mde anyway.

So, during the day when developing, and I want to test the system in "end
user mode", I will hit alt-f4 (this will exit ms-access).

At this point, you are now back to the folder where you are looking at a
bunch of files, and the mdb file you where in should still be highlighted.
So, I then hit the enter key.

At this point, the application runs, and because of the settings in
tools->startup, no menus appear (you don't need to write one line of code to
hide the menus, all you need is to use is the tools->startup settings. If
you are wring code to hide, or show the menus, then you are doing this all
wrong!).

So, after hitting enter...the applications launches, and runs the main
startup form, runs a lot of setup code (global vars etc get initialized).
You then test the application and make sure it works ok. Ok, now done, we
need to get back to developer mode. You whack alt-f4 to shut down ms-access,
and then again hit the enter key to re-launch the application, but this time
you hold down the shift key.

This whole key sequence of whacking alt-f4 and enter to exit/enter ms-access
and flip between developer mode (hold down shift key), and test in "end user
mode" will happen MANY MANY times in a day during development and testing.
The whole sequence happens in a FLASH, and occurs very quickly once you get
the hang of this.

When you finally got your changes done, then you convert the mdb to mde for
your users, and then disable the shift by-pass key.

So, really, I don't see why you need hide/un-hide the menus via code. The
only reason why you would need this is if you got the development process
all wrong, and are using code to hide all the menus when you don't need to.

If you want to see an application that changes menus for each form, and also
hides all of ms-access, and takes NO CODE to do this, try downloading the
sample database here:

http://www.members.shaw.ca/AlbertKallal/msaccess/DownLoad.htm
(grab the 3rd example...."with ms-access interface hidden"

The only steps left out of the above example for the end users would be to
create the mde, and disable the shift key. However, prior to this last step,
no code is needed to hide/show the menus.

Any reason why you don't just disable the shift key as the LAST step before
you distribute you mde file to the users?
 
J

jsccorps

thanks for the reply

i understand the concept of enabling/disabling the full menus via Startup
option and using the Shift key to gain access to the menus. The MDE version
has the bypass via shift key option disabled.

However, I have one 'renegade' user in the field (who happens to be at the
director level - pays the bills) who wants to be able to access the full
menus to poke around the tables (i'm trying to convince him that the forms
that we've created should suffice - but he is insisting on being able to have
access to the menus) So my solution is to provide for him a 'backdoor' that
will allow him to access the menus. (don't want to leave the shift key
enabled since this is a known entity).
 
Top