Re: Shift Key function
- From: John Spencer <spencer@xxxxxxxxx>
- Date: Fri, 04 Sep 2009 12:06:29 -0400
I usually put in a "back door" of some type to reset the AllowByPass key property to True.
I also have code that runs to set the AllowByPassKey property to false that runs in a start up routine.
One method is to use an event on an unattached label's click event in an obscure location (such as an about this database form) that when double-clicked runs the code to set the AllowByPassKey to true.
Then the user closes the database and reopens with the shift-key depressed.
You can make the reset harder by using a variety of techniques
-- Require a password to be entered
-- Check to see if the shift key or the control key is depressed when the label is clicked
-- Check to see who the user is
-- or a combination of the above.
Another option is to check out ALbert Kallal's site. I think he has code there that can be run externally to the database to reset AllowShiftBypassKey
http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Karren Lorr wrote:
THank you.
But how do I change the False to True if I can't get into the database design ?.
Sorry to ask such simple (I hope) questions
At the moment I have a master copy without the shift key disabled and another copy with it set to false (disabled). I was thinking there should be a better way of doing this
?
"Douglas J. Steele" wrote:
I don't understand what you mean that "most of the methods I have seen rely on the application being held on a server". All you need to do is change the value of the AllowBypassKey property from False to True.
Sorry, but it's an all-or-nothing proposition.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Karren Lorr" <KarrenLorr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:40006AC7-4F88-4581-B100-95A87D7EC132@xxxxxxxxxxxxxxxxI have disabled the shift key (using the AllowBypassKey = False) so that
users can't get into a database sections they are not meant to. I would like
to enable this function on a stand alone application - most of the methods I
have seen rely on the application being held on a server and they all seem to
fail when a database is zipped and e mailed ?
But
I would like to allow "some" staff members but not other to use the shift
key so they can look at the application in design view.
Thank you
Karen Lorr
- References:
- Shift Key function
- From: Karren Lorr
- Re: Shift Key function
- From: Douglas J. Steele
- Re: Shift Key function
- From: Karren Lorr
- Shift Key function
- Prev by Date: Re: Date filter
- Next by Date: RE: Sum by Part Number
- Previous by thread: Re: Shift Key function
- Next by thread: Re: Shift Key function
- Index(es):
Relevant Pages
|