当前位置:跳过导航链接计算机毕业设计首页 : VB计算机毕业设计 : 详细内容

VB住房信息管理系统(程序下载)(14)

来源:xiaoniu168.com 作者:本站原创 添加时间:2014-11-06 点击数:41161

计算机毕业设计介绍:

4.18 操作员信息维护
点击系统维护里的操作员信息维护,显示操作员信息维护页面。

以下是引用片段:

实现功能的关键代码为:
Private Sub MMButton_XPBE2_Click()
'修改密码
Dim tmprs As New ADODB.Recordset
Dim strresult As String
Set tmprs = ExecSql("select * from czyxx where czydlm='" & Me.Text3(0).Text & "' and czykl = '" & Me.Text3(1).Text & "'")
With tmprs
    If .RecordCount > 0 Then
       strresult = Exec_SqL("update czyxx set czykl='" & Trim(Me.Text3(2).Text) & "'" _
        & "where czydlm   ='" & Trim(Me.Text3(0).Text) & "'")
        If strresult <> "OK" Then
           MsgBox strresult
           Exit Sub
        End If
       log = InsertOperateLog("修改操作员密码", "成功")
       frmMain.gczykl = Trim(Me.Text3(2).Text)
       Unload Me
    Else
       MsgBox "原密码输入错误"
    End If
End With
End Sub

<责任编辑:计算机毕业设计网(http://www.xiaoniu168.com)>

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网
计算机毕业设计客服
计算机毕业论文客服在线 计算机毕业论文客服在线
计算机毕业论文在线,计算机毕业设计在线