RE: Disable access to the database window
- From: "Leif" <Leif@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 May 2005 12:41:03 -0700
Klatuu,
Actually I have used the AllowBypassKey Property in another db project.
However, in doing so you do open up a "window of opportunity". If the user
enters with shift, after you have exited, then they get in as well. I've
mimized this chance, in my other application, by adding a keypress event to a
particular control that set the AllowBypassKey. This way I only open the
window when I need to.
However, to close even this window, as I've recently learned, set
AllowBypasskey to FALSE, then use either permissions (checked in an Autoexec)
or a backdoor (like a special key sequence) to bring up the database window
programmatically.
Regards,
Leif
"Klatuu" wrote:
> The Special Access keys is global in a sense. It is specific to that mdb.
> You could distribute a different mdb to the users that you do for an admin
> user. That is kind of klugy. There is, however, another solution. It is
> the AllowBypassKey Property. There is a pretty good example in VBA Help.
> The way I have implemented it requires some sort of security implementation.
> What I do during my startup routine is check to see if the user has admin
> authority. If he does, then I set AllowBypassKey to True, otherwise, I set
> it to False. Notice in the Help file that this does not take effect until
> you close and reopen the mdb. So, for an admin person to get into the
> database, they have to go in two time. Once that recognizes them as an admin
> user, and set the property to True. Then close the mdb, and open it with the
> Shift key down and they are in. This also means your app has to be
> constructed so that a user cannot get direct access to anything other than
> the object you allow them.
>
>
>
> "Leif" wrote:
>
> > I would like to disable access to the database window for a general user, but
> > allow an admin user access.
> >
> > I know about the Special Access keys under start up, but my understanding is
> > that this is a global, rather then a user specific, setting.
> >
> > I was looking for a keypress event that would trap all Access keys, but that
> > seems to be form specific.
> >
> > Another idea, perhaps I could disable F11, but bring up the database window
> > using code? If this was possible I could place it on a menu, since the admin
> > user has a different menu.
> >
> > Any suggestions? Thanks.
> >
.
- Follow-Ups:
- RE: Disable access to the database window
- From: Klatuu
- RE: Disable access to the database window
- References:
- Disable access to the database window
- From: Leif
- RE: Disable access to the database window
- From: Klatuu
- Disable access to the database window
- Prev by Date: Re: step through table and select data for reporting values
- Next by Date: RE: Disable access to the database window
- Previous by thread: RE: Disable access to the database window
- Next by thread: RE: Disable access to the database window
- Index(es):
Relevant Pages
|