Hy, i'm new to this forum so here we go:
I'm using acces 2000 vba and want to disable the use of the shift key at startup.
This to prevent users from getting to the code.
I found this code on the internet but couldn't get it too work:

'This Code Disables the Shift Key
'
Public Sub DisableByPassKeyProperty()
Dim db As Database
Dim prp As Property
Set db = CurrentDb
Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, False)
db.Properties.Append prp
End Sub

I get this error:
Type doesn't match(translated from dutch)
it's on this line from the disable shift key:
Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, False)

Does anyone have an idea on this, Thanx in advance