📄 书籍类别.frm
字号:
VERSION 5.00
Begin VB.Form 书籍类别
Caption = "书籍类别"
ClientHeight = 5565
ClientLeft = 6000
ClientTop = 2820
ClientWidth = 4590
LinkTopic = "Form1"
ScaleHeight = 5565
ScaleWidth = 4590
Begin VB.CommandButton Command4
Caption = "下一条"
Height = 375
Left = 2640
TabIndex = 12
Top = 4920
Width = 735
End
Begin VB.CommandButton Command3
Caption = "删除"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3720
TabIndex = 11
Top = 4920
Width = 735
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\图书管理系统\图书馆管理信息系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 1680
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "书籍类别信息"
Top = 120
Visible = 0 'False
Width = 1140
End
Begin VB.CommandButton Command2
Caption = "上一条"
Height = 375
Left = 1440
TabIndex = 10
Top = 4920
Width = 735
End
Begin VB.CommandButton Command1
Caption = "修改"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 9
Top = 4920
Width = 735
End
Begin VB.TextBox Text4
Height = 1335
Left = 720
TabIndex = 8
Top = 2760
Width = 3255
End
Begin VB.TextBox Text3
DataField = "关键词"
DataSource = "Data1"
Height = 375
Left = 1800
TabIndex = 7
Top = 1800
Width = 2175
End
Begin VB.TextBox Text2
DataField = "类别名称"
DataSource = "Data1"
Height = 375
Left = 1800
TabIndex = 6
Top = 1320
Width = 2175
End
Begin VB.TextBox Text1
DataField = "类别编号"
DataSource = "Data1"
Height = 375
Left = 1800
TabIndex = 5
Top = 840
Width = 2175
End
Begin VB.Frame Frame1
Caption = "书籍类别:"
Height = 3975
Left = 240
TabIndex = 0
Top = 480
Width = 4095
Begin VB.Label Label4
Caption = "备注信息:"
Height = 255
Left = 480
TabIndex = 4
Top = 1920
Width = 1095
End
Begin VB.Label Label3
Caption = "关键词:"
Height = 255
Left = 480
TabIndex = 3
Top = 1440
Width = 975
End
Begin VB.Label Label2
Caption = "类别名称:"
Height = 255
Left = 480
TabIndex = 2
Top = 960
Width = 975
End
Begin VB.Label Label1
Caption = "类别编号:"
Height = 255
Left = 480
TabIndex = 1
Top = 480
Width = 975
End
End
End
Attribute VB_Name = "书籍类别"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'this is really only needed for multi user apps
Data1.Refresh
End Sub
Private Sub Command2_Click()
If Data1.Recordset.BOF = False Then
Data1.Recordset.MovePrevious
Else
Data1.Recordset.MoveNext
End If
End Sub
Private Sub Command3_Click()
'this may produce an error if you delete the last
'record or the only record in the recordset
a = MsgBox("是否删除当前记录吗?", 1 + 32, "请确认")
If a = 1 Then
On Error Resume Next
With Data1.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
End If
End Sub
Private Sub Command4_Click()
If Data1.Recordset.EOF = False Then
Data1.Recordset.MoveNext
Else
Data1.Recordset.MovePrevious
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -