?? main_jcfx_jyfx.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form main_jcfx_jyfx
BorderStyle = 3 'Fixed Dialog
Caption = "決策分析-【借閱分析】"
ClientHeight = 7710
ClientLeft = 45
ClientTop = 330
ClientWidth = 11655
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7710
ScaleWidth = 11655
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin MSChart20Lib.MSChart msChart1
CausesValidation= 0 'False
Height = 6840
Left = 60
OleObjectBlob = "main_jcfx_jyfx.frx":0000
TabIndex = 1
Top = 30
Width = 11550
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 420
Left = 9690
TabIndex = 2
Top = 7110
Width = 1875
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "main_jcfx_jyfx.frx":1A65
Height = 780
Left = 60
TabIndex = 0
Top = 6915
Width = 9465
_ExtentX = 16695
_ExtentY = 1376
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 5
BeginProperty Column00
DataField = "條形碼"
Caption = "條形碼"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "書名"
Caption = "書名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "作者"
Caption = "作者"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "出版社"
Caption = "出版社"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "借出次數"
Caption = "借出次數"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1604.976
EndProperty
BeginProperty Column01
ColumnWidth = 3314.835
EndProperty
BeginProperty Column02
ColumnWidth = 1230.236
EndProperty
BeginProperty Column03
ColumnWidth = 1484.787
EndProperty
BeginProperty Column04
ColumnWidth = 1094.74
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = -540
Top = 30
Visible = 0 'False
Width = 2025
_ExtentX = 3572
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from kcb"
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
End
Attribute VB_Name = "main_jcfx_jyfx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset
Private Sub Form_Load()
Set rs1 = New ADODB.Recordset
rs1.Open "select top 10 書名,借出次數 from kcb order by 借出次數 desc", Cnn, adOpenKeyset, adLockOptimistic
With msChart1
.ShowLegend = True
.Title.text = " " & "圖書借出次數排行(前10名) " '設置圖表名稱
.Title.VtFont.Size = 12 '設置字體大小
.Title.VtFont.VtColor.Set 255, 0, 0 '設置字體顏色
End With
Set msChart1.DataSource = rs1
If rs1.RecordCount > 0 Then
rs1.MoveFirst
Set msChart1.DataSource = rs1
msChart1.ColumnLabel = "圖書借出次數"
End If
rs1.Close
Adodc1.RecordSource = "select top 10 * from kcb order by 借出次數 desc"
Adodc1.Refresh
End Sub
Private Sub Command1_Click()
frm_main.Enabled = True
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -