If WindowPassword(Forms![Frm_ElectronicSignature]![Password2], Forms![Frm_ElectronicSignature]![Password2]) = True Then GoTo ApplySignature Else GoTo PasswordFail End If
Public Function WindowPassword( _ ByVal oldpw As String, _ ByVal newpw As String, _ Optional ByVal Username As String = vbNullString) As Boolean Dim NetRet As Long 'If UserName not specified, _ defaults to current user logged on. NetRet = NetUserChangePassword(0&, _ StrPtr(Username), _ StrPtr(oldpw), _ StrPtr(newpw)) Select Case NetRet Case NERR_SUCCESS WindowPassword = True Case INVALID_PASSWORD WindowPassword = False Case ACCESS_DENIED WindowPassword = False End Select End Function
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.