Howlsta
Vampire Slayer
- Local time
- Today, 19:48
- Joined
- Jul 18, 2001
- Messages
- 180
Hi,
I'm using the code below to put a password on the tabchange event. The problem is when the user enters the password - "password" it's not starred out, seeing as it's not a field I can't get rid of the problem with an input mask. Does anyone know how I can get the text entered into the input box to come up with stars pls?
Private Sub tabSwitchboard_Change()
Dim strPasswd
Select Case Me.tabSwitchboard.Pages. _
Item(Me.tabSwitchboard.Value).Name
Case "pagStaff"
strPasswd = InputBox("Enter Password", "Restricted Page")
If strPasswd = "Password" Then
Me.pagStaff.SetFocus
Else
Me.Page3.SetFocus
Exit Sub
End If
End Select
End Sub
Rich.
p.s How do you get the smiley faces to come up in posts. I'm jealous cos i can't do it!
I'm using the code below to put a password on the tabchange event. The problem is when the user enters the password - "password" it's not starred out, seeing as it's not a field I can't get rid of the problem with an input mask. Does anyone know how I can get the text entered into the input box to come up with stars pls?
Private Sub tabSwitchboard_Change()
Dim strPasswd
Select Case Me.tabSwitchboard.Pages. _
Item(Me.tabSwitchboard.Value).Name
Case "pagStaff"
strPasswd = InputBox("Enter Password", "Restricted Page")
If strPasswd = "Password" Then
Me.pagStaff.SetFocus
Else
Me.Page3.SetFocus
Exit Sub
End If
End Select
End Sub
Rich.
p.s How do you get the smiley faces to come up in posts. I'm jealous cos i can't do it!