📄 空调名称型号.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form 空调名称型号
Caption = "设置空调名称型号"
ClientHeight = 6450
ClientLeft = 60
ClientTop = 510
ClientWidth = 5850
LinkTopic = "Form1"
ScaleHeight = 6450
ScaleWidth = 5850
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton ExitCommand
Caption = "返回"
Height = 495
Left = 3960
Style = 1 'Graphical
TabIndex = 3
Top = 5520
Width = 1335
End
Begin VB.CommandButton DeleteCommand
Caption = "删除一行"
Height = 495
Left = 2280
Style = 1 'Graphical
TabIndex = 2
Top = 5520
Width = 1335
End
Begin VB.CommandButton AddCommand
Caption = "添加一行"
Height = 495
Left = 600
Style = 1 'Graphical
TabIndex = 1
Top = 5520
Width = 1335
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "空调名称型号.frx":0000
Height = 4455
Left = 120
OleObjectBlob = "空调名称型号.frx":0014
TabIndex = 0
Top = 840
Width = 5535
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access 2000;"
DatabaseName = "C:\大地科贸\大地数据库.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 615
Left = 4080
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "空调名称及型号表"
Top = 120
Visible = 0 'False
Width = 1575
End
End
Attribute VB_Name = "空调名称型号"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub AddCommand_Click()
With Data1.Recordset
.AddNew
.Update
.MoveLast
End With
End Sub
Private Sub DeleteCommand_Click()
YesNo = MsgBox("真的要删除吗", vbYesNo + vbQuestion)
If YesNo <> vbYes Then
Exit Sub
End If
If Data1.Recordset.RecordCount > 0 Then
Data1.Recordset.Delete
Data1.Recordset.MovePrevious
End If
End Sub
Private Sub ExitCommand_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -