?? form2.frm
字號:
VERSION 5.00
Begin VB.Form Form2
Caption = "員工基本信息"
ClientHeight = 4095
ClientLeft = 60
ClientTop = 450
ClientWidth = 6660
LinkTopic = "Form2"
ScaleHeight = 4095
ScaleWidth = 6660
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command7
Caption = ">|"
Height = 495
Left = 3480
Style = 1 'Graphical
TabIndex = 17
Top = 2880
Width = 615
End
Begin VB.CommandButton Command6
Caption = ">"
Height = 495
Left = 2880
TabIndex = 16
Top = 2880
Width = 615
End
Begin VB.CommandButton Command5
Caption = "<"
Height = 495
Left = 2280
TabIndex = 15
Top = 2880
Width = 615
End
Begin VB.CommandButton Command4
Caption = "|<"
Height = 495
Left = 1680
TabIndex = 14
Top = 2880
Width = 615
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 495
Left = 4680
TabIndex = 13
Top = 3480
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "更新"
Height = 495
Left = 2520
TabIndex = 12
Top = 3480
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 360
TabIndex = 11
Top = 3480
Width = 1215
End
Begin VB.TextBox Text5
Height = 375
Left = 1920
TabIndex = 9
Top = 2400
Width = 1815
End
Begin VB.TextBox Text4
Height = 375
Left = 1920
TabIndex = 8
Top = 1830
Width = 1815
End
Begin VB.TextBox Text3
Height = 375
Left = 1920
TabIndex = 7
Top = 1320
Width = 1815
End
Begin VB.TextBox Text2
Height = 375
Left = 1920
TabIndex = 6
Top = 690
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 1920
TabIndex = 5
Top = 120
Width = 1815
End
Begin VB.Label Label6
Caption = "時間格式:20070127"
ForeColor = &H00000000&
Height = 255
Left = 4080
TabIndex = 10
Top = 2520
Width = 1815
End
Begin VB.Label Label5
Caption = "參加工作時間"
Height = 375
Left = 240
TabIndex = 4
Top = 2520
Width = 1695
End
Begin VB.Label Label4
Caption = "崗位編號"
Height = 375
Left = 240
TabIndex = 3
Top = 1380
Width = 1695
End
Begin VB.Label Label3
Caption = "職稱"
Height = 375
Left = 240
TabIndex = 2
Top = 1950
Width = 1695
End
Begin VB.Label Label2
Caption = "姓名"
Height = 375
Left = 240
TabIndex = 1
Top = 810
Width = 1695
End
Begin VB.Label Label1
Caption = "編號"
Height = 375
Left = 240
TabIndex = 0
Top = 240
Width = 1695
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text <> "" Then
Form1.Adodc1.Recordset.AddNew
Else
a = MsgBox("請輸入編號信息", , "警告")
End If
End Sub
Private Sub Command4_Click()
Form1.Adodc1.Refresh
Form1.Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command5_Click()
If Not Form1.Adodc1.Recordset.BOF Then Form1.Adodc1.Recordset.MovePrevious
End Sub
Private Sub Command6_Click()
If Not Form1.Adodc1.Recordset.EOF Then Form1.Adodc1.Recordset.MoveNext
End Sub
Private Sub Command7_Click()
Form1.Adodc1.Refresh
Form1.Adodc1.Recordset.MoveLast
End Sub
Private Sub Form_Activate()
Form1.Adodc1.RecordSource = "員工基本信息表"
Form1.Adodc1.Refresh
Set Text1.DataSource = Form1.Adodc1
Text1.DataField = "編號"
Set Text2.DataSource = Form1.Adodc1
Text2.DataField = "姓名"
Set Text3.DataSource = Form1.Adodc1
Text3.DataField = "崗位編號"
Set Text4.DataSource = Form1.Adodc1
Text4.DataField = "職稱"
Set Text5.DataSource = Form1.Adodc1
Text5.DataField = "參加工作時間"
End Sub
Private Sub Command2_Click()
If Text1.Text = "" Then
MsgBox ("請選擇數據")
Else
a = MsgBox("確認要更新!", 1, "警告")
End If
If a = 1 Then Form1.Adodc1.Recordset.Update
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -