📄 主界面.frm
字号:
VERSION 5.00
Begin VB.Form form10
Caption = "主界面"
ClientHeight = 7245
ClientLeft = 4635
ClientTop = 2580
ClientWidth = 9480
DrawWidth = 3
LinkTopic = "Form1"
Picture = "主界面.frx":0000
ScaleHeight = 4142.367
ScaleMode = 0 'User
ScaleWidth = 8000
WindowState = 2 'Maximized
Begin VB.Label Label1
Caption = "小型售书管理系统 开发者 刘振华 编号 20054440216"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 2640
TabIndex = 0
Top = 5880
Width = 5175
End
Begin VB.Menu man
Caption = "会员管理(&M)"
Begin VB.Menu newman
Caption = "新会员(&N)"
End
Begin VB.Menu delman
Caption = "注销会员(&D)"
End
End
Begin VB.Menu find
Caption = "查询(&F)"
Begin VB.Menu all
Caption = "显示所有图书(&A)"
End
Begin VB.Menu name
Caption = "按书名查询(&N)"
End
Begin VB.Menu user
Caption = "会员信息查询(&M)"
End
End
Begin VB.Menu books
Caption = "书库(&B)"
Begin VB.Menu new
Caption = "存入新书(&I)"
End
Begin VB.Menu del
Caption = "删除旧书(&O)"
End
End
Begin VB.Menu st
Caption = "统计(&S)"
Begin VB.Menu sav
Caption = "购书统计(&S)"
End
End
Begin VB.Menu help
Caption = "帮助(&H)"
End
End
Attribute VB_Name = "form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim note As New ADODB.Recordset
Private Sub all_Click()
Dim sql As String
sql = "select * from 书库表" 'Sql查询书库表
note.Open sql, cnn, 3, 2
If note.EOF And note.BOF Then
MsgBox "无书!"
note.Close
Else
form7.Show
On Error Resume Next '有错误也强制执行
note.MoveFirst
If Err.Number <> 0 Then Exit Sub '如果有错则退出
Do While Not note.EOF '循环直到记录集的末尾
form7.MSFlexGrid1.AddItem (Empty) '将记录集合的数据输出到MSFLEXGRID控件
form7.MSFlexGrid1.Row = form7.MSFlexGrid1.Rows - 2
form7.MSFlexGrid1.Col = 0
form7.MSFlexGrid1.Text = Trim(note.Fields("书号").Value)
form7.MSFlexGrid1.Col = 1
form7.MSFlexGrid1.Text = Trim(note.Fields("书名").Value)
form7.MSFlexGrid1.Col = 2
form7.MSFlexGrid1.Text = note.Fields("作者").Value
form7.MSFlexGrid1.Col = 3
form7.MSFlexGrid1.Text = Trim(note.Fields("定价").Value)
form7.MSFlexGrid1.Col = 4
form7.MSFlexGrid1.Text = note.Fields("出版社编号").Value
form7.MSFlexGrid1.Col = 5
form7.MSFlexGrid1.Text = note.Fields("数量").Value
form7.MSFlexGrid1.Col = 6
form7.MSFlexGrid1.Text = note.Fields("类别").Value
note.MoveNext
Loop
Set note = Nothing '释放连接
form7.MSFlexGrid1.RemoveItem form7.MSFlexGrid1.Rows - 1
End If
End Sub
Private Sub del_Click() '以下为菜单栏链接部分
form6.Show
End Sub
Private Sub delman_Click()
form11.Show
End Sub
Private Sub Form_Load()
Call forOpen
End Sub
Private Sub help_Click()
Form12.Show
End Sub
Private Sub name_Click()
form4.Show
End Sub
Private Sub new_Click()
form9.Show
End Sub
Private Sub newman_Click()
form8.Show
End Sub
Private Sub sav_Click()
Form2.Show
End Sub
Private Sub user_Click()
form3.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -