ACC95: NewPassword Method Doesn't Update Current SessionID: Q149219
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
After using the NewPassword method to change a user's password, the user
is unable to access objects for which he or she has permissions. The user
receives the error message "Not a valid account name or password."
There are two possible workarounds for this error message.
Microsoft has confirmed this to be a problem in Microsoft Access version 7.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Form: ChangePassword
-----------------------
Caption: ChangePassword
Textbox:
Name: OldPwd
ControlSource:
Textbox:
Name: NewPwd
ControlSource:
Command button:
Name: Button0
Caption: My Button
OnClick: [Event Procedure]
Set the Onclick property to the following [Event Procedure]
Private Sub Command0_Click()
Dim ws as Workspace
Set ws = DBEngine.Workspaces(0)
ws.Users(CurrentUser()).NewPassword [OldPwd], [NewPwd]
ws.Close
End Sub
Old: ""
New: abc
Microsoft Access "Building Applications," version 7.0, Chapter 14, "Securing and Delivering Your Application", pages 328-339.
Keywords : kberrmsg kbusage ScrtUsr
Version : 7.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 27, 1999