I have a database and was wondering if it was possible to disable the
user from deleting anything at all or any objects whatsoever from the
database.
Maybe if the database requires a password to delete objects, or
deleting objects was just disabled altogether would be of great help.
If this is not possible then maybe a way to disable the database
window. I have it disabled on startup options but this can easily be
bypassed by just opening it again.
Many thanks to all help in advance.
Matt - 29 Mar 2007 13:48 GMT
On Mar 29, 8:13 am, essseeproducti...@hotmail.co.uk wrote:
> I have a database and was wondering if it was possible to disable the
> user from deleting anything at all or any objects whatsoever from the
[quoted text clipped - 8 lines]
>
> Many thanks to all help in advance.
I asked a few months ago how to password protect the database window.
It is actually pretty easy.
Here is the thread for that question:
http://groups.google.com/group/microsoft.public.access/browse_thread/thread/313b
754de42b8848/4a155afcbe6ef048?lnk=st&q=&rnum=12#4a155afcbe6ef048
Arvin Meyer [MVP] - 29 Mar 2007 14:21 GMT
You can hide the database window using Tools >>> Startup and you can prevent
savy users from using the Shift key and F11 with a bit of code:
Public Function LockDB(blnLock As Boolean)
'=============================================
' Name: LockDB
' Purpose: Kill the Shift key
'
' Inputs: blnLock As Boolean
'
' Author: Arvin Meyer
' Date: April 19, 1999
' Comment: If blnLock = 0, the bypass key is activated,
' If blnLock = -1, the bypass key is deactivated
' Keep a copy of the database without this property
'=============================================
On Error GoTo Err_LockDB
Dim prp As Property
Const PropertyNotFound = 3270
CurrentDb.Properties("AllowBypassKey") = blnLock
Exit_LockDB:
Exit Function
Err_LockDB:
'Create the property if not found.
If Err = 3270 Then
Set prp = CurrentDb.CreateProperty("AllowBypassKey", dbBoolean,
blnLock)
CurrentDb.Properties.Append prp
Resume Next
Else
Resume Exit_LockDB
End If
End Function

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
>I have a database and was wondering if it was possible to disable the
> user from deleting anything at all or any objects whatsoever from the
[quoted text clipped - 8 lines]
>
> Many thanks to all help in advance.