3个回答
推荐于2017-12-15
展开全部
Dim str As StringIf Text23.Text = "" Then
MsgBox "密码不能为空!", vbInformation + vbOKOnly, "提示您"
Exit Sub
End IfIf Text23.Text <> Text24.Text Then
MsgBox "两次输入的密码不一致!", vbInformation + vbOKOnly, "提示您"
Exit Sub
End Ifstr = "update 登录表 set 密码='" & Text23.Text & "' where 用户='" & Text21.Text & "'" If executesql(str) = True Then
MsgBox "密码已经修改!", vbInformation + vbOKOnly, "提示您"
Text23.Text = ""
Text24.Text = ""
Else
MsgBox "修改密码失败,有问题请联系管理员!", vbInformation + vbOKOnly, "提示您"
End If
MsgBox "密码不能为空!", vbInformation + vbOKOnly, "提示您"
Exit Sub
End IfIf Text23.Text <> Text24.Text Then
MsgBox "两次输入的密码不一致!", vbInformation + vbOKOnly, "提示您"
Exit Sub
End Ifstr = "update 登录表 set 密码='" & Text23.Text & "' where 用户='" & Text21.Text & "'" If executesql(str) = True Then
MsgBox "密码已经修改!", vbInformation + vbOKOnly, "提示您"
Text23.Text = ""
Text24.Text = ""
Else
MsgBox "修改密码失败,有问题请联系管理员!", vbInformation + vbOKOnly, "提示您"
End If
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询