?? 修改密碼.frm
字號:
VERSION 5.00
Begin VB.Form 修改密碼
Caption = "修改密碼"
ClientHeight = 3195
ClientLeft = 5385
ClientTop = 3435
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\圖書管理系統\圖書館管理信息系統.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 1800
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Username"
Top = 2880
Visible = 0 'False
Width = 1140
End
Begin VB.CommandButton Command2
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2760
TabIndex = 7
Top = 2280
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "確 認"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 6
Top = 2280
Width = 1215
End
Begin VB.TextBox Text3
DataSource = "Data1"
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 5
Top = 1440
Width = 2055
End
Begin VB.TextBox Text2
DataSource = "Data1"
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 4
Top = 840
Width = 2055
End
Begin VB.TextBox Text1
DataSource = "Data1"
Height = 375
Left = 2160
TabIndex = 3
Top = 240
Width = 2055
End
Begin VB.Label Label3
Caption = "請輸入新密碼:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 2
Top = 1560
Width = 1575
End
Begin VB.Label Label2
Caption = "請輸入舊密碼:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 1
Top = 960
Width = 1695
End
Begin VB.Label Label1
Caption = "用 戶 名:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "修改密碼"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Do While Not Data1.Recordset.EOF
If Trim(Text1.Text) = Trim(Data1.Recordset("姓名")) Then
If Trim(Text2.Text) = Trim(Data1.Recordset("密碼")) Then
Data1.Recordset.Delete
Data1.Recordset.AddNew
Data1.Recordset("姓名") = Trim(Text1.Text)
Data1.Recordset("密碼") = Trim(Text3.Text)
Data1.Recordset.Update
MsgBox "修改成功", 0 + 64, "注意!"
Unload Me
登陸.Show
Exit Sub
Else
MsgBox "舊密碼不正確", 0 + 48, "警告"
Text2.Text = ""
Text1.SetFocus
Exit Sub
End If
Else
Data1.Recordset.MoveNext
End If
Loop
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -