Set ByPassProperty

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some code to set the Allow ByPass Keys to False (opening database from explorer with shift key held down will not open the database window)
However this code then prevents all other modules / event procedures / vba programs responding, with the error message "Error accessing file. Network connection may have been lost" or no message but events not occurring
How can I disable bypass keys, but maintain functions
 
First you need to create the AllowByPass property for the
database:
Dim myProp As Property
Set myProp = db.CreateProperty("AllowBypassKey",
dbBoolean, False)
db.Properties.Append myProp
Then if you need to set it to either true or false for
which ever you need.
db.Properties("AllowBypassKey").Value = False or True

--Craig

-----Original Message-----
I have some code to set the Allow ByPass Keys to False
(opening database from explorer with shift key held down
will not open the database window).
However this code then prevents all other modules / event
procedures / vba programs responding, with the error
message "Error accessing file. Network connection may have
been lost" or no message but events not occurring.
 

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

Back
Top