Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protect A Folder Tab In A Form

Status
Not open for further replies.

DanMartin

Programmer
Jan 18, 2002
1
US
I have a form with a folder that has 5 tabs(pages). I would like to password protect one of these tabs by requesting a password with the tab is clicked. Is this possible, if would someone lead me in the right direction.

Thanks!
 
First thing i suggest you do i make the form invisible during run time. you can eaily do this by chagining the visible property to false.

once this is done make a button on a separate tab which has the following code

Dim strInput As String, StrMsg As String

StrMsg = "Please Enter Password"
strInput = InputBox(Prompt:=StrMsg, TITLE:="User Validation", xpos:=2000, ypos:=2000)

If strInput = "stuff" Then 'strInput being textbox
tab.visible = true
End If

this will promp the user for the password "stuff in this case, but change it to whatever you want. if the password is valid the tab will become visible. If the password is invalid, then nothing will happen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top