Or you could just call this code with the fully qualified path and file name...
Code:
Public Sub ReEnableByPassKeyProperty(StrDBPath As String)
Dim WS As Workspace
Dim db As Database
Set WS = Workspaces(0)
Set db = WS.OpenDatabase(StrDBPath)
db.Properties.Delete "AllowByPassKey"
db.Properties.Refresh
End Sub
You could also only lock it before you publish it and keep a working development copy for yourself.
I think I will stick with the latter option, in just activating when I publish. I have a habit of keeping several copies so I will keep it smple I think.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.