📄 form7.frm
字号:
VERSION 5.00
Begin VB.Form Form7
BorderStyle = 3 'Fixed Dialog
Caption = "修改密码"
ClientHeight = 3225
ClientLeft = 45
ClientTop = 375
ClientWidth = 5745
LinkTopic = "Form7"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3225
ScaleWidth = 5745
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2880
TabIndex = 7
Top = 2400
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1320
TabIndex = 6
Top = 2400
Width = 1095
End
Begin VB.TextBox Text3
Height = 375
Left = 1920
TabIndex = 5
Top = 1560
Width = 1695
End
Begin VB.TextBox Text2
Height = 375
Left = 1920
TabIndex = 3
Top = 1080
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 1920
TabIndex = 1
Top = 600
Width = 1695
End
Begin VB.Label Label3
Caption = "确认密码: (八位以内)"
Height = 375
Left = 960
TabIndex = 4
Top = 1680
Width = 4095
End
Begin VB.Label Label2
Caption = "输入密码: (八位以内)"
Height = 375
Left = 960
TabIndex = 2
Top = 1200
Width = 3975
End
Begin VB.Label Label1
Caption = "用 户 ID:"
Height = 255
Left = 960
TabIndex = 0
Top = 720
Width = 975
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs_test As New ADODB.Recordset
Dim sql As String
If Text2.Text = Text3.Text Then
sql = "select * from users where u_id='" & Text1.Text & "'"
Call Conn
rs_test.Open sql, Module1.conn_mdb, 3, 3
rs_test("u_mima") = Text2.Text
rs_test.Update
Call conclose
Unload Me
Else
MsgBox "请重新确认密码!", , "提示"
Text2.Text = ""
Text3.Text = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -