0

Im New to the community, im having difficulty in trying to attach code to a password program that will open folders once the correct password is entered. Any ideas on how to do this???

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Neitz
0

Im New to the community, im having difficulty in trying to attach code to a password program that will open folders once the correct password is entered. Any ideas on how to do this???

Take two txt boxes and a command button
And enter the following code:
Private Sub Command1_Click()
'In quotes write your password
if text1.text = "_____" and text2.text = "_____" then
form2.show
else
msgbox "Wrong username and or password"
end if

0

This is the code im working on, but i cant figure out what to put in it to open folders.
The program should be able to a specific folder once the correct password is entered.

Dim Message As String
Dim Correct As String

Private Sub cmdEnter_Click()
Correct = txtpword.Text=txtpword.Tag

If Correct Then

Message = MsgBox("Enter", vbOKOnly + vbInformation, "Access Granted")

Else

Message = MsgBox("Access Denied", vbOKOnly + vbCritical, " Incorrect Password")

End If

End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.