Code a button to access Startup Tools once disabled

G

Guest

I have setup passworded forms as menus and disbaled the F11 key and
disallowed Full Menus in Startup to add some simple security to a database.
Only the correct password will all access to each menu/form with limited
access on each. On one "Full Access" menu I've added a button with code that
will open the database window to queries to allow access there. But, I'd
also like to add a button to that menu that allows me into the "Tools" area
so I can change items there. Any suggestions for code that would open that
tool bar?
 
A

Albert D. Kallal

The way you do this is you work on the mdb file..but distribute a mde to
your uses
with the shift-by pass disabled....

You most certainly can, and should hide all of the ms-access interface. The
options to complete hide and keep people out of the ms-access interface can
easily be done using the tools->start-up options. Using those options allows
you to complete hide the ms-access interface (tool bars, database window
etc).

Also, using these options means you do not have to bother setting up
security.

Try downloading and running the 3rd example at my following web site that
shows a hidden ms-access interface, and NO CODE is required to do
this....but just some settings in the start-up.

Check out:

http://www.members.shaw.ca/AlbertKallal/msaccess/DownLoad.htm

After you try the application, you can exit, and then re-load the
application, but hold down the shift key to by-pass the start-up options. If
want, you can even disable the shift key by pass. I have a sample mdb file
that will let you "set" the shift key bypass on any application you want.

You can get this at:

http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html

Of course, during development, you will hold down the shift key so your
start-up settings don't run. You then develop for awhile, and then to test
in
"user" mode, you exit..and then re-enter the application without the shift
key bypassed. You will likely do this dance all day long as you run/test as
user mode, and then flip back in to developer mode (shift key used..so you
don't get the main custom menu). So, you can't develop, or really modify
things when you run your application with the start-up settings...so you
must
shift-by-pass them when you want to work.

And, in fact, I use alt-f4 to exit the application...the mdb file should
still be highlighted in the windows explore..so, then you hit enter key
(and, hold down shift key if you need be). This key stroke sequence and
exiting and re-entering the application will occur CONSTANTLY all day long
when you are developing.

When you finally have things just right...you create the mde
you plan to distribute.

Of course, a mde is many advantages, such as uses can't modify things, and
un-handled errors do NOT re-set your code variables. And, they are smaller,
load, and run faster. All in all, with start-up settings, and distribute a
mde...you don't need any special code at all...
 
G

Guest

Thank you for all the info. It'll take me some time to work through it all
and get it setup. Your time and response is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top