?? form8.frm
字號(hào):
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 = "帳號(hào):"
Height = 255
Left = 840
TabIndex = 9
Top = 480
Width = 615
End
Begin VB.Label Label3
Caption = "確認(rèn)新密碼:"
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 "請(qǐng)輸入你的帳號(hào)!", vbOKOnly + vbExclamation, "密碼修改"
Text4.SetFocus
Exit Sub
End If
If Text1.Text = "" Then
MsgBox "請(qǐng)輸入你的密碼!", vbOKOnly + vbExclamation, "密碼修改"
Text1.SetFocus
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "請(qǐng)輸入新密碼!", vbOKOnly + vbExclamation, "密碼修改"
Text2.SetFocus
Exit Sub
End If
If Text3.Text = "" Then
MsgBox "請(qǐng)輸入你確認(rèn)密碼!", vbOKOnly + vbExclamation, "密碼修改"
Text3.SetFocus
Exit Sub
End If
Adodc1.RecordSource = "select * from 帳號(hào)密碼 where 帳號(hào)='" & Text4.Text & "' and 密碼='" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF Then
MsgBox ("沒有此用戶或密碼錯(cuò)誤")
Else
If Text2.Text = Text3.Text Then
MsgBox ("修改成功!")
'Adodc1.Recordset![密碼] = Text3.Text
Else
MsgBox ("確認(rèn)密碼不正確!請(qǐng)重新確認(rèn)!")
Text3.SetFocus
Exit Sub
End If
End If
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -