?? frm_khsjfx.frm
字號(hào):
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form frm_KHSJFX
BorderStyle = 3 'Fixed Dialog
Caption = "客戶數(shù)據(jù)分析圖表"
ClientHeight = 5280
ClientLeft = 1890
ClientTop = 1830
ClientWidth = 9075
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5280
ScaleWidth = 9075
ShowInTaskbar = 0 'False
Begin MSChart20Lib.MSChart msChart1
Height = 4335
Left = 240
OleObjectBlob = "frm_KHSJFX.frx":0000
TabIndex = 0
Top = 240
Width = 8640
End
Begin VB.CommandButton Command1
Caption = "關(guān)閉"
Height = 375
Left = 7200
TabIndex = 1
Top = 4800
Width = 1335
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3960
Top = 1560
Width = 2175
_ExtentX = 3836
_ExtentY = 661
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_KHZL"
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 = "frm_KHSJFX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private nums As Integer
Private Sub Form_Load()
Dim i As Integer
Adodc1.RecordSource = "select distinct 字段名稱,查詢條數(shù) from Table_TJ"
Adodc1.Refresh
nums = Adodc1.Recordset.RecordCount
ReDim arrValues(1 To nums, 1 To 2) '定義動(dòng)態(tài)數(shù)組
For i = 1 To nums '給數(shù)組賦值
arrValues(i, 1) = " " & Adodc1.Recordset!字段名稱
arrValues(i, 2) = Adodc1.Recordset!查詢條數(shù)
Adodc1.Recordset.MoveNext
Next i
msChart1.ChartData = arrValues '圖表顯示數(shù)據(jù)
msChart1.Title = "客戶數(shù)據(jù)分析圖表" '圖表名稱
End Sub
Private Sub Command1_Click()
MDI_main.Toolbar1.Visible = False
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
MDI_main.Toolbar1.Visible = False
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -