Shift key button

V

vb_Dumb

i was wondering if there was a way to have a button that when you
pressed it it would prompt you for a password and then enable or
disable the shift key bypass
 
D

Douglas J. Steele

Sure.

You need

CurrentDb.Properties("AllowBypassKey") = False

to disable using the shift key, or

CurrentDb.Properties("AllowBypassKey") = True

to enable it.

Note, though, that that will not take effect until after you shut down the
database and reopen it.
 

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