C
Casey
I use the code below to actually make the change of a
password, but I would like also to message the user if the
password actually has been changed. How would I determine
whether the verification of the password change was true
or false. I want to use that determination as in
If password change verification is true Then
MsgBox "Password has been successfully changed."
Else
MsgBox "Password has not been changed."
Endif
But, naturally using code instead of the "password
change verification" words that I use in the statement.
I would also place that If statement in the procedure
I have listed below.
I would appreciate any opinions.
Thank you,
Casey
Private Sub Command174E_Click()
If [NewPwd] = [Vrfy] Then
Dim ws As Workspace
Dim usr As User
Set ws = DBEngine.Workspaces(0)
With ws
Set usr = .Users(CurrentUser())
usr.NewPassword [OldPwd], [NewPwd]
End With
Else
DoCmd.OpenForm "Pwdmsgfrm3"
End If
End Sub
password, but I would like also to message the user if the
password actually has been changed. How would I determine
whether the verification of the password change was true
or false. I want to use that determination as in
If password change verification is true Then
MsgBox "Password has been successfully changed."
Else
MsgBox "Password has not been changed."
Endif
But, naturally using code instead of the "password
change verification" words that I use in the statement.
I would also place that If statement in the procedure
I have listed below.
I would appreciate any opinions.
Thank you,
Casey
Private Sub Command174E_Click()
If [NewPwd] = [Vrfy] Then
Dim ws As Workspace
Dim usr As User
Set ws = DBEngine.Workspaces(0)
With ws
Set usr = .Users(CurrentUser())
usr.NewPassword [OldPwd], [NewPwd]
End With
Else
DoCmd.OpenForm "Pwdmsgfrm3"
End If
End Sub