📄 frmcdsqr.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmcdsqr
BorderStyle = 3 'Fixed Dialog
Caption = "承兑申请人情况报告表"
ClientHeight = 2685
ClientLeft = 45
ClientTop = 330
ClientWidth = 5025
Icon = "frmcdsqr.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2685
ScaleWidth = 5025
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command4
Caption = "退出"
Height = 375
Left = 3720
TabIndex = 6
Top = 2160
Width = 975
End
Begin VB.CommandButton Command3
Caption = "确定"
Height = 375
Left = 2400
TabIndex = 5
Top = 2160
Width = 975
End
Begin VB.Frame Frame1
Caption = "选择报表日期"
Height = 1695
Left = 240
TabIndex = 0
Top = 240
Width = 4455
Begin MSComCtl2.DTPicker DTPicker2
Height = 255
Left = 1800
TabIndex = 4
Top = 1020
Width = 1455
_ExtentX = 2566
_ExtentY = 450
_Version = 393216
Format = 24576001
CurrentDate = 37287
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 255
Left = 1800
TabIndex = 3
Top = 480
Width = 1455
_ExtentX = 2566
_ExtentY = 450
_Version = 393216
Format = 24576001
CurrentDate = 37287
End
Begin VB.Label Label2
Caption = "期未日期"
Height = 255
Left = 960
TabIndex = 2
Top = 1060
Width = 735
End
Begin VB.Label Label1
Caption = "期初日期"
Height = 255
Left = 960
TabIndex = 1
Top = 530
Width = 735
End
End
End
Attribute VB_Name = "frmcdsqr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
With 承兑申请人情况报告表
.Sections(2).Controls(7).Caption = Me.DTPicker1.Value & "至" & Me.DTPicker2.Value
.PrintReport
End With
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If Me.DTPicker1.Value > Me.DTPicker2.Value Then
MsgBox "期初日期怎么大于期未日期?修改一下吧。", vbOKOnly Or vbInformation, "系统信息"
Exit Sub
End If
Cddate1 = Str(Me.DTPicker1.Value)
Cddate2 = Str(Me.DTPicker2.Value)
frmscbb.Show 1
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim abc, cde, fgh As String
abc = DateSerial(Year(Now), Month(Now), 1)
cde = DateSerial(Year(abc), Month(abc), Day(abc) - 1)
fgh = DateSerial(Year(cde), Month(cde), 1)
Me.DTPicker2.Value = cde
Me.DTPicker1.Value = fgh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -