?? frm_sbinfo.frm
字號:
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin 工程1.GurhanCoolButton GurhanCoolButton3
Height = 330
Left = 3937
TabIndex = 39
Top = 7140
Width = 1695
_ExtentX = 2990
_ExtentY = 582
CaptionTitle = "保 存 "
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label19
AutoSize = -1 'True
Caption = "驗收日期:"
Height = 180
Left = 6300
TabIndex = 36
Top = 3780
Width = 900
End
Begin VB.Label Label18
AutoSize = -1 'True
Caption = "使用日期:"
Height = 180
Left = 3570
TabIndex = 34
Top = 3780
Width = 900
End
Begin VB.Label Label17
AutoSize = -1 'True
Caption = "安裝日期:"
Height = 180
Left = 840
TabIndex = 32
Top = 3780
Width = 900
End
Begin VB.Label Label16
AutoSize = -1 'True
Caption = "出廠日期"
Height = 180
Left = 6300
TabIndex = 30
Top = 1740
Width = 720
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "備注:"
Height = 180
Left = 840
TabIndex = 28
Top = 4410
Width = 540
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "電 話:"
Height = 180
Left = 6300
TabIndex = 26
Top = 3255
Width = 720
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "廠家電話:"
Height = 180
Left = 840
TabIndex = 24
Top = 2205
Width = 900
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "負 責人:"
Height = 180
Left = 3570
TabIndex = 23
Top = 3255
Width = 810
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "驗收人:"
Height = 180
Left = 6300
TabIndex = 21
Top = 2730
Width = 720
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "使用部門:"
Height = 180
Left = 3570
TabIndex = 19
Top = 2730
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "現置地點:"
Height = 180
Left = 840
TabIndex = 17
Top = 3255
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "設備性能:"
Height = 180
Left = 840
TabIndex = 15
Top = 2730
Width = 900
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "制造廠家:"
Height = 180
Left = 3570
TabIndex = 12
Top = 2205
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "規 格:"
Height = 180
Left = 3570
TabIndex = 10
Top = 1740
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "設備類型:"
Height = 180
Left = 840
TabIndex = 8
Top = 1740
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "編號:"
Height = 180
Left = 6300
TabIndex = 6
Top = 1215
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "設備名稱:"
Height = 180
Left = 3570
TabIndex = 4
Top = 1215
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "設備登記表"
BeginProperty Font
Name = "隸書"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3570
TabIndex = 2
Top = 210
Width = 2325
End
Begin VB.Line Line1
X1 = 1050
X2 = 8295
Y1 = 840
Y2 = 840
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "設備編碼:"
Height = 180
Left = 840
TabIndex = 1
Top = 1215
Width = 900
End
End
Attribute VB_Name = "Frm_sbinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Unload(Cancel As Integer)
Frm_sbinfocu.GurhanCoolButton1.SetFocus
End Sub
Private Sub GurhanCoolButton1_CLICKED()
Call clear
End Sub
Private Sub GurhanCoolButton2_CLICKED()
Unload Me
End Sub
Private Sub GurhanCoolButton3_CLICKED()
If Text1 = "" Or Text2 = "" Or Text3 = "" Then
MsgBox "各項基本信息不能為空"
Text1.SetFocus
Else
With Adodc1.Recordset
.Fields(0) = Trim(Text1.Text)
.Fields(1) = Trim(Text2.Text)
.Fields(2) = Trim(Text3.Text)
.Fields(3) = Trim(Text4.Text)
.Fields(4) = Trim(Text5.Text)
.Fields(5) = DTPicker1.Value
.Fields(6) = Trim(Text6.Text)
.Fields(7) = Trim(Text7.Text)
.Fields(8) = Trim(Text8.Text)
.Fields(9) = Trim(Text9.Text)
.Fields(10) = Trim(Text10.Text)
.Fields(11) = Trim(Text11.Text)
.Fields(12) = Trim(Text12.Text)
.Fields(13) = Trim(Text13.Text)
.Fields(14) = DTPicker2.Value
.Fields(15) = DTPicker3.Value
.Fields(16) = DTPicker4.Value
.Update
End With
MsgBox "信息添加成功!"
End If
Unload Me
End Sub
Private Sub clear()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -