Dim intPress As Integer, strPass As String, x As Boolean
Private Sub Command1_Click()
strPass = Text1.Text
If PassCheck() = True Then
intPress = MsgBox("Correct Password!", vbExclamation, "The result is:")
Else
intPress = MsgBox("Incorrect Password", vbCritical, "The result is:")
End If
End Sub
Private Function PassCheck(strPass As String) As Boolean
PassCheck = False
If strPass = "loser" Then
PassCheck = True
End Function
