📄 form8.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form8
BorderStyle = 1 'Fixed Single
Caption = "Form8"
ClientHeight = 2775
ClientLeft = 45
ClientTop = 330
ClientWidth = 4815
LinkTopic = "Form8"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2775
ScaleWidth = 4815
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "密码修改"
Height = 2775
Left = 0
TabIndex = 0
Top = 0
Width = 4815
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 1200
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"Form8.frx":0000
OLEDBString = $"Form8.frx":00B6
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text4
Height = 375
Left = 1560
TabIndex = 10
Top = 360
Width = 1575
End
Begin VB.CommandButton Command2
Caption = "确定"
Height = 375
Left = 3720
TabIndex = 8
Top = 1800
Width = 855
End
Begin VB.CommandButton Command1
Caption = "取消"
Height = 375
Left = 3720
TabIndex = 7
Top = 840
Width = 855
End
Begin VB.TextBox Text3
Height = 375
Left = 1560
TabIndex = 6
Top = 2160
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
Left = 1560
TabIndex = 5
Top = 1560
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 4
Top = 960
Width = 1575
End
Begin VB.Label Label4
Caption = "帐号:"
Height = 255
Left = 840
TabIndex = 9
Top = 480
Width = 615
End
Begin VB.Label Label3
Caption = "确认新密码:"
Height = 255
Left = 360
TabIndex = 3
Top = 2160
Width = 1095
End
Begin VB.Label Label2
Caption = "新密码:"
Height = 255
Left = 720
TabIndex = 2
Top = 1680
Width = 735
End
Begin VB.Label Label1
Caption = "密码:"
Height = 375
Left = 840
TabIndex = 1
Top = 1080
Width = 615
End
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
If Text4.Text = "" Then
MsgBox "请输入你的帐号!", vbOKOnly + vbExclamation, "密码修改"
Text4.SetFocus
Exit Sub
End If
If Text1.Text = "" Then
MsgBox "请输入你的密码!", vbOKOnly + vbExclamation, "密码修改"
Text1.SetFocus
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "请输入新密码!", vbOKOnly + vbExclamation, "密码修改"
Text2.SetFocus
Exit Sub
End If
If Text3.Text = "" Then
MsgBox "请输入你确认密码!", vbOKOnly + vbExclamation, "密码修改"
Text3.SetFocus
Exit Sub
End If
Adodc1.RecordSource = "select * from 帐号密码 where 帐号='" & Text4.Text & "' and 密码='" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF Then
MsgBox ("没有此用户或密码错误")
Else
If Text2.Text = Text3.Text Then
MsgBox ("修改成功!")
'Adodc1.Recordset![密码] = Text3.Text
Else
MsgBox ("确认密码不正确!请重新确认!")
Text3.SetFocus
Exit Sub
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -