The following VBA works up to a point then stops saying it doesn't recognise txt box
Private Sub Text24_Click()
Dim strPassword As String
strPassword = InputBox("Please enter the password:")
If strPassword = "YourPassword" Then
Me!txtTextBox.Enabled = True
Else
Call MsgBox("The password you entered was incorrect")
End If