Change Password Form. (1 Viewer)

accessaspire219

Registered User.
Local time
Today, 00:49
Joined
Jan 16, 2009
Messages
126

Hi,
I have a change password form on which there are 4 text boxes and a button.
Text Box1= login name (windows username of the user picked up automatically)
Text Box2=oldpassword (user enters the old password)
Text Box3=newpassword (user enters the new password)
Text Box 4=newpassword1 (user re-enters the new password)
I need help with the part of the code that will do the following.
If the old password entered in text box 2 matches the old password stored in the UserInformation table for the login name in text box 1
On clicking the change password button replace the oldpassword (under the password column) in the User information table with the newpassword. Save table and close form.
Else, give an error message that the user entered an invalid password.
Italics indicate the part of the code that I am unable to write.
Thanks!
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 22:49
Joined
Aug 30, 2003
Messages
36,134
Either open a recordset with an SQL statement that returns that user, and use the Edit method to change the value, or execute an UPDATE query that updates that user.
 

Users who are viewing this thread

Top Bottom