VB中提示缺少子程序、函数或属性,是怎么回事?
PrivateSubcmdOK_Click()DimtxtSQL,MsgTextAsStringDimmrcAsADODB.Recordset'判断是否一致IfTrim(...
Private Sub cmdOK_Click() Dim txtSQL, MsgText As String Dim mrc As ADODB.Recordset '判断是否一致 If Trim(txtPassword1.Text) <> Trim(txtPassword2.Text) Then MsgBox "密码输入不正确!", vbOKOnly + vbExclamation, "警告" txtPassword1.SetFocus txtPassword2.Text = "" Else txtSQL "select * from user_info where user_id='" & UserName & "'" Set mrc = ExecuteSQL(txtSQL, MsgText) mrc.Fields(1) = txtPassword1.Text mrc.Update mrc.Close MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码" Me.Hide End If End Sub
展开
2个回答
展开全部
txtSQL "select * from user_info where user_id='" & UserName & "'"
改为
txtSQL = "select * from user_info where user_id='" & UserName & "'"
改为
txtSQL = "select * from user_info where user_id='" & UserName & "'"
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询