J
janliv1102
I have the following code in my from. This code password protects a control
on the form and prompts the user for a password if you are trying to update
it. The problem I have is that when typing the password if anybody is
standing near they can see what the password is because it is not encypted is
their anything that I can put in this code that will the password encrypted
when I type it in?
Private Sub Credit_Release_Date_GotFocus()
' check for a date. if there, then need pwd.
' Me refers to this form. The '.' dot is like right click and properties.
If Me.Credit_Release_Date.Value Then
If InputBox("To change the credit release date requires an administrator
password. Press Cancel if you don't need to change the date.") = "janel" Then
DoCmd.OpenForm FormName
Else
' they are not authorized to be in this field.
' move them off the field, and tell them.
Me![Comments].SetFocus
MsgBox "You are not authorized! Only administrators can change this
date.", vbOKOnly
End If ' password
End If ' CredRel Date
End Sub
on the form and prompts the user for a password if you are trying to update
it. The problem I have is that when typing the password if anybody is
standing near they can see what the password is because it is not encypted is
their anything that I can put in this code that will the password encrypted
when I type it in?
Private Sub Credit_Release_Date_GotFocus()
' check for a date. if there, then need pwd.
' Me refers to this form. The '.' dot is like right click and properties.
If Me.Credit_Release_Date.Value Then
If InputBox("To change the credit release date requires an administrator
password. Press Cancel if you don't need to change the date.") = "janel" Then
DoCmd.OpenForm FormName
Else
' they are not authorized to be in this field.
' move them off the field, and tell them.
Me![Comments].SetFocus
MsgBox "You are not authorized! Only administrators can change this
date.", vbOKOnly
End If ' password
End If ' CredRel Date
End Sub