VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Accept multiple passwords.

by zach smith (2 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Accept multiple passwords, yet still deny access for wrong password entries.

Rate Accept multiple passwords.

Dim Pw1 As String
Dim Pw2 As String
Pw1 = "password1"
Pw2 = "password2"
If Text1 = Pw1 Then
MsgBox "you entered the correct password"
Else
If Text1 = Pw2 Then
MsgBox "you entered the correct password"
Else
MsgBox "wrong password, please try again"
End If
End If

Download this snippet    Add to My Saved Code

Accept multiple passwords. Comments

No comments have been posted about Accept multiple passwords.. Why not be the first to post a comment about Accept multiple passwords..

Post your comment

Subject:
Message:
0/1000 characters