View Full Version : Altering text box code to make specifc password necessary


WebFaktor
02-16-2002, 11:25 AM
Hi

The code which follows will prevent a user from leaving a form's textbox until they enter any type of information into it. Is it possible to alter the code so the user will be required to enter a specific password before proceeding. A password such as "marigold"

Thanks in advance,

WebFaktor/Michael


Private Sub Password_Exit(Cancel As Integer)
If IsNull([Password]) Then
MsgBox "Password incorrect! Please try again..."
[Holder].SetFocus
[Password].SetFocus
End If
End Sub

D B Lawson
02-16-2002, 11:48 AM
Sent you a demo which you might find useful.