怎么样检验添加的用户已存在
解决方案 »
- vb生成EXE后出现的几个问题?
- 关于vb的MSDN示例中的一个问题。
- 标题不知道怎么能留住你的脚步:“开发voip计费系统的思路”(200分).
- 最后20分了,请问大家是怎样实现的。
- 怎样为判断三张表的数字型字段的输入是否正确建立一个公用的testInput函数
- 咋回事那?
- 那可以下载matrixVB?
- 我的后台数据库是Oracle8i,客户端前台程序用VB编写,在客户端还需要安装哪些和Oracle相关的东东?
- 怎样实现不做二次登陆而调用数据库连接字符串
- 求助CSDN:"数组的数组" array(i)(2,3) ----总是报错: Type mismatch : array or user defined type expected
- 谁知道怎么在Label中显示多行文本.
- VB2005EXPRESS EDITION 应用程序的安装部署
if not rst.eof then
msgbox "有这条记录"
end if
if not (rst.eof and rst.bof) then
msgbox "用户存在 "
end if
rst.open "select count(*) from userinfo where username='"+trim(text1.text)+"'",cnn
if rst(0)>0 then msgbox "用户存在 "
我写了这一句
但运行时错误信息“对象变量或with块变量未设置”
dim rst as new adodb.recordset
错误信息“至少一个参数没有被指定”但是我这里的参数都写上去了呀
也就是把代码改成
rs.Open "select * from use where Trim(gusetname)='" & Trim(Text1.Text) & "'", conn, adOpenStatic, adLockOptimistic
if rs.recordcount<>0 then
msgbox"存在用户"
else
msgbox"用户不存在"
end if
sql="select * from use where Trim(gusetname)='" & Trim(Text1.Text) & "'"
set rs=conn.exucte(sql)
那么到把新增的用户添加到表里的时候会提示该表不支持更新,如果是这样要怎么样改才能让它支持呀