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
 

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

Top