📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form AddKemu
Caption = "科目录入"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2520
TabIndex = 5
Top = 2040
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 720
TabIndex = 4
Top = 2040
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Left = 2520
TabIndex = 1
Text = "0.00"
Top = 720
Width = 1095
End
Begin VB.ComboBox Combo1
Height = 300
Left = 480
TabIndex = 0
Top = 720
Width = 1335
End
Begin VB.Label Label2
Caption = "金额"
Height = 255
Left = 2640
TabIndex = 3
Top = 240
Width = 735
End
Begin VB.Label Label1
Caption = "科目名称"
Height = 375
Left = 480
TabIndex = 2
Top = 240
Width = 1215
End
End
Attribute VB_Name = "AddKemu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
' InputForm.ListView1.ListItems.Item(1).
Dim moneyKemu As Currency
Dim strKemu As String
strKemu = Combo1.Text
moneyKemu = CCur(Text1.Text)
InputForm.kemu1Add strKemu, moneyKemu
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rstCombo1 = New ADODB.Recordset
rstCombo1.ActiveConnection = pubConn
rstCombo1.Open "select distinct 科目 from kemu", pubConn, adOpenStatic, adLockOptimistic
With rstCombo1
.MoveFirst
While Not .EOF
Combo1.AddItem !科目
.MoveNext
Wend
End With
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -