📄 form10.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form10
BorderStyle = 3 'Fixed Dialog
Caption = "报名费查询..."
ClientHeight = 6135
ClientLeft = 45
ClientTop = 330
ClientWidth = 7890
LinkTopic = "Form10"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6135
ScaleWidth = 7890
ShowInTaskbar = 0 'False
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 5100
Top = 2250
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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 MSDataGridLib.DataGrid DataGrid1
Bindings = "Form10.frx":0000
Height = 4845
Left = 120
TabIndex = 10
Top = 1230
Width = 7725
_ExtentX = 13626
_ExtentY = 8546
_Version = 393216
HeadLines = 1
RowHeight = 18
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 3
BeginProperty Column00
DataField = "A"
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 = "B"
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 = "C"
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 = 3509.858
EndProperty
BeginProperty Column01
EndProperty
BeginProperty Column02
ColumnWidth = 2264.882
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Height = 1035
Left = 120
TabIndex = 0
Top = 150
Width = 7695
Begin VB.CommandButton Command2
Caption = "查 询"
Height = 375
Left = 4440
TabIndex = 11
Top = 540
Width = 1005
End
Begin VB.CheckBox Check2
Caption = "收费人员"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 4410
TabIndex = 9
Tag = "jbr"
Top = 165
Width = 1335
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 5760
TabIndex = 8
Top = 150
Width = 1845
End
Begin VB.CommandButton Command1
Caption = "打 印"
Height = 375
Left = 5520
TabIndex = 7
Top = 540
Width = 1005
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 285
Left = 1200
TabIndex = 1
Top = 210
Width = 1755
_ExtentX = 3096
_ExtentY = 503
_Version = 393216
CustomFormat = "yyyy-mm-dd"
Format = 24969216
CurrentDate = 37260
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 285
Left = 3090
TabIndex = 2
Top = 210
Width = 1125
_ExtentX = 1984
_ExtentY = 503
_Version = 393216
CustomFormat = "hh:nn:ss"
Format = 24969218
CurrentDate = 37260
End
Begin MSComCtl2.DTPicker DTPicker3
Height = 285
Left = 1200
TabIndex = 3
Top = 570
Width = 1785
_ExtentX = 3149
_ExtentY = 503
_Version = 393216
CustomFormat = "yyyy-mm-dd"
Format = 24969216
CurrentDate = 37260
End
Begin MSComCtl2.DTPicker DTPicker4
Height = 285
Left = 3090
TabIndex = 4
Top = 570
Width = 1125
_ExtentX = 1984
_ExtentY = 503
_Version = 393216
Format = 24969218
CurrentDate = 37260
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "起始时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 90
TabIndex = 6
Top = 240
Width = 1020
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "终止时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 90
TabIndex = 5
Top = 600
Width = 1020
End
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
DataReport2.Show
End Sub
Private Sub Command2_Click()
SFBB = " where bmsj between '" & format(DTPicker1.Value, "yyyy-mm-dd") & " " & format(DTPicker2.Value, "hh:nn:ss") & "' and '" & format(DTPicker3.Value, "yyyy-mm-dd") & " " & format(DTPicker4.Value, "hh:nn:ss") & "'"
If Check2.Value = 1 Then
SFBB = SFBB & " and jbr='" & Trim(Combo1.Text) & "'"
End If
Adodc1.RecordSource = "select A=JDJX,B=cOUNT(xm),C=SUM(CDFY) from XYB " & SFBB & " and cdfy<>'0' group BY JDJX"
Adodc1.Refresh
End Sub
Private Sub Form_Load()
Me.Left = (MDIForm1.Width - Me.Width) / 2
Me.Top = (MDIForm1.Height - Me.Height) / 2 - 1000
Me.Show
Dim RS As New ADODB.Recordset
RS.CursorLocation = adUseClient
RS.Open "SELECT YF FROM YF", Cn, 1, 3
Do While Not RS.EOF
Combo1.AddItem RS(0)
RS.MoveNext
Loop
RS.Close
Adodc1.ConnectionString = Cn.ConnectionString
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -