I found the following code to Disable and Re-Enable the shift key at startup.
To Disable I have:
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
To Re-Enable I have:
Public Sub EnableByPassKeyProperty()
Dim db As Database
Set db = CurrentDb
db.Properties.Delete "AllowByPassKey"
db.Properties.Refresh
End Sub
How do I use this code.
I am trying a command button (On Click) on my Main Switchboard but I can not get it to work.
Could someone give me more details on how to get it to work?
Thanks.
Thomas Bailey
tomcat@reportcop.com
To Disable I have:
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
To Re-Enable I have:
Public Sub EnableByPassKeyProperty()
Dim db As Database
Set db = CurrentDb
db.Properties.Delete "AllowByPassKey"
db.Properties.Refresh
End Sub
How do I use this code.
I am trying a command button (On Click) on my Main Switchboard but I can not get it to work.
Could someone give me more details on how to get it to work?
Thanks.
Thomas Bailey
tomcat@reportcop.com