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???

kindly post the code that you are working on currently.

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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.