Hi richard, I have entered the code for lesson 27 but it is not working. Can you help me figure out why? Here is the copy of the code I entered: Private Sub DisableByPass_Click()
On Error Resume Next Dim DB As DOA.Database Dim PR As DOA.Property Set DB = CurrentDb Set PR = DB.CreateProperty("AllowBypassKey", dbBoolean, False) DB.Properties.Append PR DB.Properties("AllowBypassKey") = False Set DB = Nothing MsgBox "ByPass Key Disabled"
End Sub
Reply from Richard Rost:
What's not working? Are you getting an error message? Does DEBUG stop on a particular line? What version of Access are you using?
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.