📄 统计界面.frm
字号:
VERSION 5.00
Begin VB.Form 统计界面
Caption = "数据统计界面"
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 = "统计界面"
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 = "现已处理证件数为" & n & "件"
ElseIf 信息查询.Combo1.ListIndex = 3 Then
Label1 = "现未处理证件数为" & n & "件"
ElseIf 信息查询.Combo1.ListIndex = 4 Then
Label1 "现已处理车辆数为" & n & "件"
ElseIf 信息查询.Combo1.ListIndex = 5 Then
Label1 = "现未处理车辆数为" & n & "件"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -