So I got this code somewhere on the web:
Dim pwd As String
pwd = InputBox("What is the Password?")
If pwd = "TC" Then
MsgBox "You're In"
Else
MsgBox "Nice Try Wise Guy, You're Out!!"
DoCmd.Close
End If
What its suppose to is have the form password protected so that you have to enter the correct password to access it. However when I use it EVEN if you type in the WRONG password, it still allows you to access the form. What is wrong with this coding