user/password problem

I

Immanuel_Black

Hello I am using the built in access user/groups to control access for my
access application. I have run into an issue with passwords. When I try and
read the password property of the user it says i can't change it to string.
Is there a reason for this or am I just trying to do it wrong. Here is the
code I am using:
 
I

Immanuel_Black

oops forgot the code. here is the code:


Dim wspWorkspace As Workspace
Dim usrUser As User


Set wspWorkspace = DBEngine(0)
strUserName = wspWorkspace.UserName
Set usrUser = wspWorkspace.Users(strUserName)

If (txtPassword <> usrUser.Password) Then
GoTo errWrongPassword
End If


it gives me an error at usrUser.Password
 
R

Rick Brandt

Immanuel_Black said:
Hello I am using the built in access user/groups to control access
for my access application. I have run into an issue with passwords.
When I try and read the password property of the user it says i can't
change it to string. Is there a reason for this or am I just trying
to do it wrong. Here is the code I am using:

If VBA code could read a person's password that would make the password
pretty useless don't you think?

If you are using the built in user level security then it is ULS's job to
test passwords, not yours.
 
I

Immanuel_Black

Is there a way to get the ULS to verify the users password for my form. I'm
using it as a group management form. so the administrators can change the
user information within my application. I want some form of verification on
this form though. So I thought getting the admin user to enter their password
would be ideal
 
R

Rick Brandt

Immanuel_Black said:
Is there a way to get the ULS to verify the users password for my
form. I'm using it as a group management form. so the administrators
can change the user information within my application. I want some
form of verification on this form though. So I thought getting the
admin user to enter their password would be ideal

Not sure I understand. If they attempt something that ULS indicates they
have no permissions to do then they will get an error. Isn't that
sufficient? For that matter you just give that group (only) permission to
your form so if they can successfully view the form you already know that
they have administrator rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows 10 W10 password prob. 2
Excel Excel macro and passwords 3
Expiration notification 4
Testing for Password on a Form 1
Password HELP! 2
Error when running form 2
Isolating fields with password protection 5
Dlookup only returning the first record 6

Top