?? frm_szygl.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_czygl
Caption = "操作員管理"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 345
ClientWidth = 5775
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3075
ScaleWidth = 5775
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text4
DataField = "密碼"
DataSource = "Adodc1"
Height = 300
Left = 4245
TabIndex = 17
Text = "Text4"
Top = 3405
Width = 1335
End
Begin VB.Frame Frame3
Height = 705
Left = 510
TabIndex = 12
Top = 2250
Width = 4545
Begin VB.CommandButton Command1
Caption = "增刪用戶"
Height = 408
Left = 135
TabIndex = 16
Top = 195
Width = 1080
End
Begin VB.CommandButton Command2
Caption = "修改密碼"
Enabled = 0 'False
Height = 408
Left = 1215
TabIndex = 15
Top = 195
Width = 1080
End
Begin VB.CommandButton Command3
Caption = "密碼確定"
Height = 408
Left = 2265
TabIndex = 14
Top = 195
Width = 1080
End
Begin VB.CommandButton Command4
Caption = "退出"
Height = 408
Left = 3330
TabIndex = 13
Top = 195
Width = 1080
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 405
Left = 1785
Top = 3225
Width = 2145
_ExtentX = 3784
_ExtentY = 714
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.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_power"
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 Frame2
Height = 2025
Left = 3435
TabIndex = 9
Top = 150
Width = 1995
Begin VB.Label Label5
Caption = $"Frm_szygl.frx":0000
Height = 1665
Left = 105
TabIndex = 10
Top = 255
Width = 1770
End
End
Begin VB.Frame Frame1
Caption = "用戶密碼"
Height = 1995
Left = 285
TabIndex = 0
Top = 165
Width = 3030
Begin VB.TextBox Text3
Height = 300
Left = 1365
TabIndex = 8
Top = 1515
Visible = 0 'False
Width = 1395
End
Begin VB.TextBox Text2
Height = 300
Left = 1365
TabIndex = 7
Top = 1080
Visible = 0 'False
Width = 1395
End
Begin VB.TextBox Text1
Height = 300
Left = 1365
TabIndex = 6
Top = 675
Width = 1365
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1380
Style = 2 'Dropdown List
TabIndex = 5
Top = 255
Width = 1350
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "請確認新密碼"
Height = 180
Left = 195
TabIndex = 4
Top = 1575
Visible = 0 'False
Width = 1080
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "請輸入新密碼"
Height = 180
Left = 240
TabIndex = 3
Top = 1170
Visible = 0 'False
Width = 1080
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "請輸入密碼"
Height = 180
Left = 240
TabIndex = 2
Top = 735
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "請選擇操作員"
Height = 180
Left = 240
TabIndex = 1
Top = 330
Width = 1080
End
End
Begin VB.Label Label6
Caption = "Label6"
DataField = "操作員姓名"
DataSource = "Adodc1"
Height = 315
Left = 345
TabIndex = 11
Top = 3720
Width = 1110
End
End
Attribute VB_Name = "Frm_czygl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Adodc1.RecordSource = "select * from tab_power"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
Combo1.AddItem Label6.Caption
Adodc1.Recordset.MoveNext
Loop
End If
End Sub
Private Sub Command1_Click()
Frm_yhgl.Show
Unload Me
End Sub
Private Sub Command2_Click()
If Text2.Text = Text3.Text Then
Text4.Text = Text2.Text
Adodc1.Recordset.Update ("密碼"), Text4.Text
MsgBox "修改成功"
Text2.Visible = False
Text3.Visible = False
Label3.Visible = False
Label4.Visible = False
Command2.Enabled = False
Adodc1.Refresh
Else
MsgBox "密碼不一致請重新輸入", 48, "提示"
Text3.Text = ""
Text3.SetFocus
End If
End Sub
Private Sub Command3_Click()
Adodc1.RecordSource = "select * from tab_power where 操作員姓名 = '" + Combo1.Text + "' "
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
If Text1.Text = Text4.Text Then
Text2.Visible = True
Text3.Visible = True
Label3.Visible = True
Label4.Visible = True
Command2.Enabled = True
Else
MsgBox "輸入的密碼錯誤,請重新輸入", 48, "提示"
Text1.Text = ""
Text1.SetFocus
End If
End If
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -