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
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE