My example code will simply set, or un-set the shift key by-pass.
So, my example code does NOT change anything else in the database.
If you want to test, and see how the shift key works. Try download the 3rd
example at:
http://www.attcanada.net/~kallal.msn...s/DownLoad.htm
Now, try running that above sample you just downloaded.
You will notice that when you run that sample mail merge..that all the
access menus are hidden..and the start-up options that I set (in
tools->start-up) are used.)
Now, exit that database...and re-start it. However, hold down shift key
during the start-up...and you will NOT get my custom interface..but will be
free to view..and "see" how I setup the database. So, holding down the shift
key will disable all of the options that I set in the tools->start-up.
(those options for your custom database...and those options allow you to
hide things for your users).
Now, exit the database..and run my shift key utility..and disable the shift
key on that sample download. Now, run the sample download, and you will
notice that the shift key DOES NOT WORK..and as a result you can't get
inside the application. Give the above a try. To get back into my sample
application..you will thus have to exit the sample application...and then
run my shift-key app to un-unlock that application.
By the way..that sample application is also a great example of how to hide
all of the ms-access interface..and NO code was needed to hide all of the
ms-access stuff...but JUST the start-up options were used. So, hold down the
shift key..and then you can get inside the application and see what options
I used to hide everything.
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
pl******************@msn.com http://www.attcanada.net/~kallal.msn