- UID
- 231571
- 帖子
- 12783
- 精华
- 0
- 威望
- 97
- 阅读权限
- 100
- 来自
- Ragnarok
- 注册时间
- 2004-10-15
|
17#
发表于 2007-6-28 15:18
| 只看该作者
Private Sub cmdOK_Click()
Dim mrc As ADODB.Recordset
Dim strmsg As String
txtSQL = "select count(*) from userinfo where UID='" & Trim(txtUserName.Text) & "' and PWD="'" & Trim(txtPassword.Text) & '"
Set mrc = ExecuteSQL(txtSQL, strmsg)
Dim return_count
return_count=mrc.Fields(0)
if return_count=0 then
MsgBox " 用户名不存在或密码错误!", vbExclamation + vbOKOnly, "警告"
end if
OK = True
frmMain.Show
Unload Me
End Sub
试下吧..
根据你写的改的..
[ 本帖最后由 .lemon. 于 2007-6-28 15:43 编辑 ] |
|