📄 frmgengxin.frm
字号:
VERSION 5.00
Begin VB.Form frmgengxin
Caption = "frmgengxin"
ClientHeight = 5115
ClientLeft = 60
ClientTop = 450
ClientWidth = 6015
LinkTopic = "Form1"
ScaleHeight = 5115
ScaleWidth = 6015
StartUpPosition = 3 '窗口缺省
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access 2000;"
DatabaseName = "D:\VB+Access源代码\book.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 2400
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "书名"
Top = 5880
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 3840
TabIndex = 2
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 720
TabIndex = 1
Top = 4200
Width = 1215
End
Begin VB.Frame Frame1
Caption = "新书登记"
Height = 1095
Left = 360
TabIndex = 0
Top = 360
Width = 5175
Begin VB.TextBox Text1
Height = 495
Left = 2160
TabIndex = 4
Top = 360
Width = 2535
End
Begin VB.Label Label1
Caption = "书名"
BeginProperty Font
Name = "华文彩云"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 960
TabIndex = 3
Top = 360
Width = 1815
End
End
End
Attribute VB_Name = "frmgengxin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "" Then
MsgBox "请输入完整数据!", 48
Text1.SetFocus
Exit Sub
End If
With Data1
.Recordset.AddNew
.Recordset("书名") = Text1
.Recordset.Update
End With
Text1 = "": Text1.SetFocus
End Sub
Private Sub Command2_Click()
MDIForm1.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -