Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Access break key 1

Status
Not open for further replies.

Alanclyde

Technical User
Jun 5, 2009
22
GB
How can I stop people using the BREAK (shift) key to open Access in edit mode?

I have tried this in the past but failed!!!
 
Thanks lameid...I will try this and get back with the results.
 
This works fine...I just need to make sure I have a backup and I remember where my hiddin button is...
 
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.

Once again, thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top