标题:求助登录问题
只看楼主
caochali
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2018-12-3
 问题点数:0 回复次数:0 
求助登录问题
用传参的方法总是提示必须声明变量@n

Dim conn As New ADODB.Connection
Dim cmd As New
Dim rs As New ADODB.Recordset

conn.Open db.GetStrConn
cmd.ActiveConnection = conn
= adCmdText

cmd.Parameters.Append cmd.CreateParameter("@n", adVarChar, adParamInput, 50, m_user.Name)
cmd.Parameters.Append cmd.CreateParameter("@p", adVarChar, adParamInput, 50, m_user.Pass)
= "select * from Users where [UserName]=@n and [UserPassword]=@p"

Set rs = cmd.Execute
搜索更多相关主题的帖子: 登录 Dim conn ADODB cmd 
2018-12-03 16:53



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-491793-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.825478 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved