Re: Change Password command

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It's not something I've ever played with, so this is my first look, but you
can change passwords directly from VBA by doing something like...

Dim ws As Workspace
Dim usr As User
Set ws = DBEngine.Workspaces(0)
Set usr = ws.Users(CurrentUser)
usr.Password = "...."

So I'd suggest building your own form with that type of stuff behind the OK
button.


"Rob" <robert.parker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1136857038.426333.21560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm using Access security, and have a button which opens the User and
> Group Accounts dialog, via the following code:
>
> DoCmd.RunCommand acCmdUserAndGroupAccounts
>
> I also have a function which returns True if the current user is a
> member of the admins group. What I would like to do is, if the user is
> not in the admins group, to open the User and Group Accounts dialog
> with the Change Password tab selected (since the Users tab doesn't have
> many usable options, and what I really want is to allow users to change
> their password as easily as possible.
>
> (How) can I force the Change Password tab to be selected when the User
> and Group Accounts dialog is opened?
>
> TIA,
>
> Rob
>


.



Relevant Pages

  • [?] User & Services Deployment
    ... How do you prevent the creation of -OR- delete user and group accounts ... Say I would like to have the IPSEC service run as/log on as ... Enable Option: User can not change password ...
    (microsoft.public.windowsxp.setup_deployment)
  • help with directoryentry WinNT
    ... In my hunt to change the "User Cannot Change password" attribute in ... active directory so that its unchecked, I read that it is easier to use ... Dim DSESearcher As New DirectorySearcher ... Dim objProperties = objWinNT.Properties ...
    (microsoft.public.dotnet.languages.vb)
  • PasswordChange
    ... code to change password: ... Dim ob As New LdapAuthentication ... Public Function changeOldPassword(ByVal username As String, ... oldpassword As String, ByVal newpassword As String) As Boolean ...
    (microsoft.public.dotnet.framework.aspnet.security)