| 发表于:2007-10-29 02:50:2510楼 得分:0 |
可以这样做啊. 先用一个查询语句查询用户名是否存在.存在了要想修改这个用户名下的所有资料.可以在用一条sql语句啊. 查询:sql="select * from 表名 where username='"& trim (text1.text) &"'" if rs.eof and rs.bof <> true name=1 else msgbox"用户名不存在!",32,"错误提示" name=2 end if if name=1 then sql="update 表名 set 字段名1=值,字段名2=值 where username='"&trim(text1.text)&"'" rs.open sql end if | | |
|