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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for Variable password

Status
Not open for further replies.

TheunsGoosen

Technical User
Jan 17, 2007
36
GB
Access beginner
Hi,
At the moment my text box is set to unlock with a fix password, but i would like to allow the user to determine his own password that he enters in "textbox1" and then the MsgBox will respond to his personal password, at the moment my code looks like this.
Thanks
Theuns

Private Sub Command7_Click()
Dim strInput As String, strMsg As String
strMsg = "'Action code'is password protected."
strInput = InputBox(prompt:=strMsg, _
Title:="Emplyee 'action code'")
If strInput = "CLR" Then
Me.EmployeeCode.Locked = False
Else
Me.EmployeeCode.Locked = True
End If
End Sub
 
You will need to create a user table and look it up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top