Hi..i am using this code to forcing users to enter their password which will allow them to open a form, which is working fine, I would like if possible by using a tick box on the opened form have their username stored for use on subsequent report, would anyone be able to give me some help / point me in the correct direction ...as always thanks in advance
cheers Fi
Private Sub cmdOK_Click()
If txtPassword.Value = DLookup("Password", "tblAccess", "[UserId] = txtUserID.Value") Then
CheckFlag
DoCmd.Close acForm, "frmLogin"
Else
MsgBox "Invalid Password, please enter the correct password or contact the database administrator"
End If
End Sub
Private Sub cmdOK_Click()
If txtPassword.Value = DLookup("Password", "tblAccess", "[UserId] = txtUserID.Value") Then
CheckFlag
DoCmd.Close acForm, "frmLogin"
Else
MsgBox "Invalid Password, please enter the correct password or contact the database administrator"
End If
End Sub