Dim strInput As String
Dim strMsg As String
Dim stDocName As String
Dim stLinkCriteria As String
strMsg = "Please Enter the password to open this form?"
strInput = InputBox(Prompt:=strMsg, Title:="Password Required")
If strInput = "your_password_here" Then
stDocName = "frmProjects"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
End If