?? addteacher.frm
字號:
VERSION 5.00
Begin VB.Form addteacher
BackColor = &H8000000D&
Caption = "添加教師信息"
ClientHeight = 2700
ClientLeft = 6765
ClientTop = 4320
ClientWidth = 3390
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 2700
ScaleWidth = 3390
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 1620
TabIndex = 11
Top = 2010
Width = 1275
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 345
Left = 150
TabIndex = 10
Top = 2040
Width = 1125
End
Begin VB.TextBox Text5
Height = 285
Left = 780
TabIndex = 9
Top = 1500
Width = 1515
End
Begin VB.TextBox Text4
Height = 255
Left = 780
TabIndex = 8
Top = 1140
Width = 1515
End
Begin VB.TextBox Text3
Height = 255
Left = 780
TabIndex = 7
Top = 810
Width = 1515
End
Begin VB.TextBox Text2
Height = 255
Left = 780
TabIndex = 6
Top = 450
Width = 1515
End
Begin VB.TextBox Text1
Height = 270
Left = 780
TabIndex = 5
Top = 90
Width = 1515
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "電話"
Height = 180
Left = 360
TabIndex = 4
Top = 1560
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "職務"
Height = 180
Left = 360
TabIndex = 3
Top = 1200
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "性別"
Height = 180
Left = 360
TabIndex = 2
Top = 840
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "教師姓名"
Height = 180
Left = 0
TabIndex = 1
Top = 480
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "教師編號"
Height = 180
Left = 0
TabIndex = 0
Top = 120
Width = 720
End
End
Attribute VB_Name = "addteacher"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
teach.Adodc1.Recordset.MoveLast
teach.Adodc1.Recordset.AddNew
teach.Adodc1.Recordset("教師編號") = Text1.Text
teach.Adodc1.Recordset("教師姓名") = Text2.Text
teach.Adodc1.Recordset("性別") = Text3.Text
teach.Adodc1.Recordset("職務") = Text4.Text
teach.Adodc1.Recordset("電話") = Text5.Text
teach.Adodc1.Recordset.Update
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -