J
John Michael
Thanks for your answer.
I am trying to use your code to dis-able the shift key from a form and am
running into some problems.
Here is your code to disable the shift key.
If IsNull(Me.Text0) = False Then
Dim MyDb As Database
Set MyDb = OpenDatabase(Text0)
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False, MyDb))
End If
I have tried to change it to run the code from within the current db from a
form.
I did so with this code.
Dim MyDb As Database
Set MyDb = CurrentDb
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False, MyDb))
When I run it i get the error:
User defined type not defined for the
Dim MyDb As Database
line of code.
I have tried running it like this
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False))
and uncommenting the
'Set dbs = CurrentDb
in the ChangeProps Module and I get the error:
dbBoolean Variable not defined.
Any ideas will be greatly appreciated.
Thanks in advance. This list is great.
Thanks
John Michael
I am trying to use your code to dis-able the shift key from a form and am
running into some problems.
Here is your code to disable the shift key.
If IsNull(Me.Text0) = False Then
Dim MyDb As Database
Set MyDb = OpenDatabase(Text0)
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False, MyDb))
End If
I have tried to change it to run the code from within the current db from a
form.
I did so with this code.
Dim MyDb As Database
Set MyDb = CurrentDb
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False, MyDb))
When I run it i get the error:
User defined type not defined for the
Dim MyDb As Database
line of code.
I have tried running it like this
MsgBox ("disable set, result = " & ChangeProperty("AllowBypassKey",
dbBoolean, False))
and uncommenting the
'Set dbs = CurrentDb
in the ChangeProps Module and I get the error:
dbBoolean Variable not defined.
Any ideas will be greatly appreciated.
Thanks in advance. This list is great.
Thanks
John Michael