'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