?? 統(tǒng)計(jì)界面.frm
字號(hào):
VERSION 5.00
Begin VB.Form 統(tǒng)計(jì)界面
Caption = "數(shù)據(jù)統(tǒng)計(jì)界面"
ClientHeight = 1890
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 1890
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 2280
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 480
Visible = 0 'False
Width = 1695
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 720
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "jjdd"
Top = 480
Visible = 0 'False
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 1440
TabIndex = 1
Top = 1200
Width = 1335
End
Begin VB.Label Label1
Caption = "Label1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 0
Top = 480
Width = 3975
End
End
Attribute VB_Name = "統(tǒng)計(jì)界面"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Data1_Reposition()
Dim n As Long
If 信息查詢.Combo1.ListIndex = 2 Then
Query = "select * from jjdd where state=1 And Type=0 "
ElseIf 信息查詢.Combo1.ListIndex = 3 Then
Query = "select * from jjdd where state=0 And Type=0 "
ElseIf 信息查詢.Combo1.ListIndex = 4 Then
Query = "select * from jjdd where state=1 And Type=1 "
ElseIf 信息查詢.Combo1.ListIndex = 5 Then
Query = "select * from jjdd where state=0 And Type=1 "
End If
Data2.RecordSource = Query
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\" + "jjdd.mdb"
Data1.Refresh
Data2.DatabaseName = App.Path + "\" + "jjdd.mdb"
Data2.Refresh
n = Data2.Recordset.RecordCount
If 信息查詢.Combo1.ListIndex = 2 Then
Label1 = "現(xiàn)已處理證件數(shù)為" & n & "件"
ElseIf 信息查詢.Combo1.ListIndex = 3 Then
Label1 = "現(xiàn)未處理證件數(shù)為" & n & "件"
ElseIf 信息查詢.Combo1.ListIndex = 4 Then
Label1 "現(xiàn)已處理車輛數(shù)為" & n & "件"
ElseIf 信息查詢.Combo1.ListIndex = 5 Then
Label1 = "現(xiàn)未處理車輛數(shù)為" & n & "件"
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -