Dear All,
I am getting "Syntex Error in Update Statement" in below code.
Please help mt to solve this.
Private Sub btn_submit_Click()
txt_pwd.SetFocus
If Trim(Len(txt_pwd.Text)) = 0 Then
MsgBox "Please Enter New Password"
txt_pwd.SetFocus
Exit Sub
End If
'Update New Password
sql = "Update USERLIST set password='" & txt_pwd.Text & "' where userid='" & userid & "'"
cn.Execute (sql)
If Err.Number > 0 Then
MsgBox Err.Description
Else
MsgBox "Password has been changed successfully.Please login Again", vbOKOnly
End
End If
I am getting "Syntex Error in Update Statement" in below code.
Please help mt to solve this.
Private Sub btn_submit_Click()
txt_pwd.SetFocus
If Trim(Len(txt_pwd.Text)) = 0 Then
MsgBox "Please Enter New Password"
txt_pwd.SetFocus
Exit Sub
End If
'Update New Password
sql = "Update USERLIST set password='" & txt_pwd.Text & "' where userid='" & userid & "'"
cn.Execute (sql)
If Err.Number > 0 Then
MsgBox Err.Description
Else
MsgBox "Password has been changed successfully.Please login Again", vbOKOnly
End
End If