ByPassShift Key

ismailr

Registered User.
Local time
Today, 11:05
Joined
Oct 16, 2015
Messages
31
Hi Guru,

To BypassShift Key, I used the code given at below link in this forum;

http://www.access-programmers.co.uk/forums/showthread.php?t=51479&highlight=bypass+shift+key

I created a sample .accdb (the same is attached) and followed the steps. Then I converted the db into .accde but unable to get the expected output. I mean, if I hold the shift key and open the db it open and shows all objects.

Please guide me, if I am missing any step or part of codes.

Thanks
Ismail
 

Attachments

Last edited:
Thanks for quick response.

For both .accdb and .accde shows correct behaviors first time but if user open subsequently with shift key, it shows all objects.

Ismail
 
Hmm...I see the issue now. Will do some investigating and get back to you.
 
you should call it with False as parameter.
 
You need to backup before you make changes or you will lock yourself out of the db. There is a way to fix it though! The BypassKey(False) need *only* be executed once (from the immediate window) and not every time the form loads. This code works just as I would expect. ARNELGP is correct that the argument should be (False) to disable the AllowShiftKey Property.
 

Users who are viewing this thread

Back
Top Bottom