Form to change password

  • Thread starter Thread starter dawn
  • Start date Start date
D

dawn

Is there a way I can create a form and use that to change
passwords for any user in the workgroup? I want the form
to have a combo list that will have the names of all
users, options for old password, new password and confirm
password.

Thanks
 
You can easily write a form that lets the current user change their own
password. Just have a textbox to enter the new password, another to re-enter
it, check the values are the same, then use the NewPassword method of the
database(?) object to effect the change.

It is harder, but perfectly possible, to write a form that lets the user
erase< any other user's password - but not to change it to something
specific (from memory - I don't have Access here to check). The technique
uses the CreateWorkspace method to create a workspace with administrative
priviligies. To do that, you need to "hard code" an Admins group username &
password into some code in the form. Then you need to stop people reading
that username/password from the form module. You can do that by making the
database an MDE, or using user-level security to restrict who can view the
form module. So it is significantly less easy than paragraph #1 above.

HTH,
TC
 
Back
Top