📄
字号:
VERSION 5.00
Begin VB.Form YS_FrmAccntBudgetC
BorderStyle = 3 'Fixed Dialog
Caption = "科目预算条件"
ClientHeight = 1770
ClientLeft = 45
ClientTop = 330
ClientWidth = 4140
Icon = "预算设置_科目预算条件.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1770
ScaleWidth = 4140
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 1575
Left = 60
TabIndex = 3
Top = 120
Width = 4035
Begin VB.CommandButton Command1
Caption = "确定(&O)"
Height = 300
Left = 1530
TabIndex = 1
Top = 990
Width = 1120
End
Begin VB.CommandButton Command2
Caption = "取消(&C)"
Height = 300
Left = 2760
TabIndex = 2
Top = 990
Width = 1120
End
Begin VB.ComboBox Cbo_AccountYear
Height = 315
Left = 1080
Style = 2 'Dropdown List
TabIndex = 0
Top = 450
Width = 2805
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "会计年度:"
Height = 195
Left = 180
TabIndex = 4
Top = 510
Width = 765
End
End
End
Attribute VB_Name = "YS_FrmAccntBudgetC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************
'* 模 块 名 称 :科目预算表会计年度选择
'* 功 能 描 述 :选择会计年度
'* 程序员姓名 : 魏永生
'* 最后修改人 :魏永生
'* 最后修改时间:2001/07/25
'* 备 注:
'*************************************************************
'会计年度选择窗体
Private Sub Command1_Click()
Int_OriYear = Val(Cbo_AccountYear.Text)
Load YS_FrmAccntBudget
YS_FrmAccntBudget.Show
End Sub
'退出
Private Sub Command2_Click()
Unload Me
End Sub
'添加会计年度
Private Sub Form_Load()
Dim temRs As New ADODB.Recordset
Dim strSql As String
Dim i As Integer
'添加会计年度
strSql = "SELECT DISTINCT kjyear FROM xt_kjrlb"
Set temRs = Cw_DataEnvi.DataConnect.Execute(strSql)
Int_OriYear = Year(Now)
For i = Int_OriYear + 2 To Int_OriYear - temRs.RecordCount + 1 Step -1
Cbo_AccountYear.AddItem Str(i)
Next i
Cbo_AccountYear.ListIndex = 2
If temRs.State = adStateOpen Then temRs.Close
Set temRs = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -