📄 实时统计.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmShiShi
BorderStyle = 1 'Fixed Single
Caption = "图书管理专家实时系统"
ClientHeight = 1680
ClientLeft = 45
ClientTop = 435
ClientWidth = 3720
Icon = "实时统计.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 1680
ScaleWidth = 3720
Begin VB.Frame Frame1
Height = 1575
Left = 120
TabIndex = 0
Top = 0
Width = 3495
Begin MSAdodcLib.Adodc AdoBookInfo
Height = 330
Left = 0
Top = 1200
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Bookdate;Data Source=127.0.0.1"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Bookdate;Data Source=127.0.0.1"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = "sa"
Password = ""
RecordSource = "BookXinXi"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "图书销售额共计:"
Height = 180
Left = 960
TabIndex = 9
Top = 1080
Width = 1440
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "员工人数:"
Height = 180
Left = 1500
TabIndex = 8
Top = 720
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "图书总数:"
Height = 180
Left = 1500
TabIndex = 7
Top = 360
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "0"
Height = 180
Left = 2520
TabIndex = 6
Top = 1080
Width = 90
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "元"
Height = 180
Left = 2880
TabIndex = 5
Top = 1080
Width = 180
End
Begin VB.Label Labempcount
AutoSize = -1 'True
Caption = "0"
Height = 180
Left = 2520
TabIndex = 4
Top = 720
Width = 90
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "人"
Height = 180
Left = 2880
TabIndex = 3
Top = 720
Width = 180
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "本"
Height = 180
Left = 2880
TabIndex = 2
Top = 360
Width = 180
End
Begin VB.Label LabBookCount
AutoSize = -1 'True
Caption = "0"
Height = 180
Left = 2520
TabIndex = 1
Top = 360
Width = 90
End
Begin VB.Image Image1
Height = 735
Left = 240
Picture = "实时统计.frx":058A
Top = 360
Width = 810
End
End
End
Attribute VB_Name = "frmShiShi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
AdoBookInfo.CommandType = adCmdText
AdoBookInfo.RecordSource = "select * from bookxinxi"
AdoBookInfo.Refresh
LabBookCount.Caption = AdoBookInfo.Recordset.RecordCount
AdoBookInfo.RecordSource = "select * from employee"
AdoBookInfo.Refresh
Labempcount.Caption = AdoBookInfo.Recordset.RecordCount
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -