RE: Passwords To Identify Users And Populate date/timestamp
- From: Klatuu <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 10:56:03 -0700
Mary,
Here is how I have done it.
I have a table in my back end that contains User Id and Password fields. I
have an encryption routine that makes them unreadable.
When a user logins in, I encrypt his/her id and password and look to see if
the user is in the database and if the password is good.
If it is a valid user, I create two application level properties. UserID and
UserPassword and assign the values to the properties.
Then when you need the values (not encrypted, by the way) you can reference
the properties.
"Mary Bowman via AccessMonster.com" wrote:
> I have six Users that will update the table. I have a password pop-up box
> to enter a password in order to open the form and edit records. How do I
> give (6) separate passwords to each User and then auto populate the form
> with the user name, date and timestamp while they edit each record.
>
> Below is my password code, but how do I from the password, identify the
> User and then populate the record with the name and timestamps?
>
>
> Dim F As Form
> Set F = Forms![frmPswrdEdit]
>
> If F!pwd = "awesome" Then GoTo pwd_success
>
> If F!pwd <> "awesome" Then GoTo pwd_invalid
> If IsNull(F!pwd) Then GoTo pwd_invalid
> If Len(F!pwd) = 0 Then GoTo pwd_invalid
>
> On Error GoTo pwd_trap
>
> pwd_success:
> DoCmd.Close acForm, "frmpswrdEdit"
> DoComd.Open “frmClientUpdate”
> Exit Sub
>
> End Sub
>
> Thanks,
> Mary Bowman
>
> --
> Message posted via http://www.accessmonster.com
>
.
- Follow-Ups:
- RE: Passwords To Identify Users And Populate date/timestamp
- From: Mary Bowman via AccessMonster.com
- RE: Passwords To Identify Users And Populate date/timestamp
- References:
- Passwords To Identify Users And Populate date/timestamp
- From: Mary Bowman via AccessMonster.com
- Passwords To Identify Users And Populate date/timestamp
- Prev by Date: Re: Passwords To Identify Users And Populate date/timestamp
- Next by Date: RE: Need Case Select Solution
- Previous by thread: Re: Passwords To Identify Users And Populate date/timestamp
- Next by thread: RE: Passwords To Identify Users And Populate date/timestamp
- Index(es):
Relevant Pages
|