📄 frmperson.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form FrmPerson
Caption = "自定义查询"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4095
Icon = "FrmPerson.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3195
ScaleWidth = 4095
Begin VB.Frame Frame1
Caption = "要据交易经额"
ForeColor = &H00800000&
Height = 1455
Left = 0
TabIndex = 6
Top = 1680
Width = 4095
Begin VB.CommandButton Command3
Caption = "查看统计"
Height = 375
Left = 2880
TabIndex = 10
Top = 600
Width = 975
End
Begin VB.OptionButton Option3
Caption = "金额 > 2万"
ForeColor = &H8000000D&
Height = 255
Left = 720
TabIndex = 9
Top = 960
Width = 2055
End
Begin VB.OptionButton Option2
Caption = "金额> 5000 元< 2万"
ForeColor = &H8000000D&
Height = 255
Left = 720
TabIndex = 8
Top = 600
Width = 2055
End
Begin VB.OptionButton Option1
Caption = "金额 < 5000 元"
ForeColor = &H8000000D&
Height = 255
Left = 720
TabIndex = 7
Top = 240
Width = 2055
End
End
Begin VB.CommandButton Command1
Caption = "查看统计"
Height = 375
Left = 1560
TabIndex = 5
Top = 960
Width = 1095
End
Begin VB.Frame Frame2
Caption = "根据日期"
ForeColor = &H00800000&
Height = 1455
Left = 0
TabIndex = 0
Top = 120
Width = 4095
Begin MSComCtl2.DTPicker DTPicker2
Height = 375
Left = 2520
TabIndex = 2
Top = 240
Width = 1455
_ExtentX = 2566
_ExtentY = 661
_Version = 393216
CalendarForeColor= 16711935
CalendarTitleBackColor= 16750899
CalendarTitleForeColor= 14745600
CalendarTrailingForeColor= -2147483634
Format = 23789569
CurrentDate = 37979
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 360
TabIndex = 1
Top = 240
Width = 1455
_ExtentX = 2566
_ExtentY = 661
_Version = 393216
CalendarForeColor= 16711935
CalendarTitleBackColor= 16744448
CalendarTitleForeColor= 14483456
CalendarTrailingForeColor= -2147483634
Format = 23789569
CurrentDate = 37979
End
Begin VB.Label Label2
Caption = "至"
ForeColor = &H00800000&
Height = 255
Left = 2040
TabIndex = 4
Top = 360
Width = 375
End
Begin VB.Label Label1
Caption = "从"
ForeColor = &H00800000&
Height = 375
Left = 120
TabIndex = 3
Top = 360
Width = 495
End
End
End
Attribute VB_Name = "FrmPerson"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
SDate = Me.DTPicker1.Value
EDate = Me.DTPicker2.Value
ActiveReport3.Show
End Sub
Private Sub Command3_Click()
If Me.Option1.Value = True Then
TradeTitle = Option1.Caption
TradeNum = "总金额 < 5000"
ElseIf Me.Option2 = True Then
TradeTitle = Option2.Caption
TradeNum = "总金额>=5000 and 总金额 < 20000"
Else
TradeTitle = Option3.Caption
TradeNum = "总金额 >= 20000"
End If
ActiveReport2.Show
End Sub
Private Sub Form_Load()
Option1.Value = True
Me.DTPicker1.Value = Format(Now, "yyyy-mm-dd")
Me.DTPicker2.Value = Format(Now, "yyyy-mm-dd")
Me.Height = 3600
Me.Width = 4295
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -