Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Quick Function for Allowing the user to change their password

Functions

A Quick Function for Allowing the user to change their password

by  Chance1234  Posted    (Edited  )
Code:
'Quick function for allow the user to change their password on a user level 'secured database. You need to pass the old password , the new password and 'the user name to the function for it to work. which can be done easily from 'a form.






Public Function pfun_change_password(str_old As String, str_new As String, str_user as string)
 Dim db As Database
 Dim ws As Workspace
 
 Set ws = DBEngine.Workspaces(0)
 
 
   
   ws.Users(str_user).NewPassword str_old, str_new
   Set db = Nothing
   
  
End Function
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top