[求助]密码修改怎么做?
用什么方法可以覆盖旧密码?
text1原密码,text2新密码,text3确认
dim rs as recordset
data1.databasename = app.path & "\user1.mdb"
data1.recordsource = "select * from user where password ='" & text1.text & "'"
data1.refresh
set rs = data1.recordset
if rs.recordcount > 0 then
if text2.text = text3.text then
rs.findfirst "password='" & text1.text & "'"
msgbox "密码成功!"
data1.updaterecord
unload me
else
msgbox "新密码和确认密码不相同!"
text1.text = ""
text2.text = ""
text3.text = ""
end if
else
msgbox "没有该密码,请重新输入"
用什么方法可以覆盖旧密码?
text1原密码,text2新密码,text3确认
dim rs as recordset
data1.databasename = app.path & "\user1.mdb"
data1.recordsource = "select * from user where password ='" & text1.text & "'"
data1.refresh
set rs = data1.recordset
if rs.recordcount > 0 then
if text2.text = text3.text then
rs.findfirst "password='" & text1.text & "'"
msgbox "密码成功!"
data1.updaterecord
unload me
else
msgbox "新密码和确认密码不相同!"
text1.text = ""
text2.text = ""
text3.text = ""
end if
else
msgbox "没有该密码,请重新输入"
解决方案 »
- 请问在vb中如何禁用CTRL键
- 请教高手:UUencode/decode中文问题
- 请问:VB里怎么将简体字符串“目前在第1页,共155页”转化为BIG5繁体字符串“ヘ玡材1155”??反过来有怎么转换?
- 如何用程序设置一个文件的最后修改时间?
- 急!请教
- 请教: 有listbox1和textbox1,在textbox1输入aaa,焦点移致listbox1,当焦点在listbox1后,如按下k键,把焦点传递给textbox1,这时光标在aaa后
- 请教各位 如何屏蔽系统的错误信息窗口?急 在线等~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 如何使应用程序运行时作为一个进程后台运行?
- 请问如何在VB里使用很旧版本扩展名为.DBF的表?
- 关于COMMANDD的问题!
- 放分求助 `~~~~~~~~~~~~~在线等
- 求教,关于text控件
rs.update
rs!password='" & t1 & "'
else
msgbox "新密码和确认密码不相同!"
endif