ProtectForm




'Password Protected Form

Sub PWProtectedForm(frm As Form, pass As String)
Dim pw
pw = InputBox("Please enter password", "Password")
If pw = Cancel Then End
If pw = pass Then
frm.Show
Else
MsgBox ("Wrong!!"), vbCritical, "Wrong!!"
End
End If
End Sub












( protectform.html )- by Paolo Puglisi - Modifica del 17/12/2023