📄 form9.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form9
BackColor = &H00FFC0C0&
Caption = "修改口令"
ClientHeight = 3630
ClientLeft = 3615
ClientTop = 3795
ClientWidth = 4755
LinkTopic = "Form9"
ScaleHeight = 3630
ScaleWidth = 4755
Begin VB.TextBox Text4
DataField = "studentid"
DataSource = "Adodc1"
Height = 270
Left = 1920
TabIndex = 7
Text = "Text4"
Top = 7080
Visible = 0 'False
Width = 615
End
Begin VB.TextBox Text3
DataField = "userpassword"
DataSource = "Adodc1"
Height = 270
Left = 1320
TabIndex = 6
Text = "Text3"
Top = 7080
Visible = 0 'False
Width = 615
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 1200
Top = 7080
Visible = 0 'False
Width = 2895
_ExtentX = 5106
_ExtentY = 873
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 = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select *from user"
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.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "修改口令"
Height = 3015
Left = 240
TabIndex = 0
Top = 240
Width = 4215
Begin VB.CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "提交"
Height = 375
Left = 1320
Style = 1 'Graphical
TabIndex = 5
Top = 2400
Width = 1455
End
Begin VB.TextBox Text2
Height = 390
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 4
Top = 1560
Width = 1575
End
Begin VB.TextBox Text1
DataSource = "Adodc1"
Height = 390
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 2
Top = 840
Width = 1575
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "再次输入密码"
Height = 255
Left = 480
TabIndex = 3
Top = 1680
Width = 1095
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "请输入密码"
Height = 255
Left = 480
TabIndex = 1
Top = 960
Width = 1095
End
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "请输入密码"
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "再次输入密码"
Exit Sub
End If
If Text1.Text = Text2.Text Then
Adodc1.Recordset.MoveFirst
Do
If Text4.Text = Form5.Text2.Text Then
Text3.Text = Text1.Text
Adodc1.Recordset.Update
MsgBox "修改成功"
Exit Do
End If
If Adodc1.Recordset.EOF Then
MsgBox "没有这个记录"
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
Else
MsgBox "输入的密码不一致"
End If
Adodc1.Recordset.MoveFirst
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -