📄
字号:
VERSION 5.00
Begin VB.Form 月结
BorderStyle = 5 'Sizable ToolWindow
Caption = "月结转帐"
ClientHeight = 1695
ClientLeft = 60
ClientTop = 285
ClientWidth = 4350
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1695
ScaleWidth = 4350
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 1695
Left = 0
TabIndex = 3
Top = 0
Width = 4335
Begin VB.ComboBox Combo1
Height = 300
ItemData = "月结.frx":0000
Left = 608
List = "月结.frx":004C
TabIndex = 0
Text = "1999"
Top = 480
Width = 1095
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "月结.frx":00E0
Left = 2288
List = "月结.frx":0108
TabIndex = 1
Text = "几月份"
Top = 480
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 548
TabIndex = 2
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2588
TabIndex = 4
Top = 1080
Width = 1215
End
Begin VB.Label Label1
Caption = "年"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1935
TabIndex = 5
Top = 510
Width = 375
End
End
End
Attribute VB_Name = "月结"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim db As Database
Dim tb As DAO.TableDef
Dim str As String
Set db = Workspaces(0).OpenDatabase("c:\program files\common files\main.mdb")
str = "main" & Combo1.Text & Combo2.Text
Call CopyStruct(db, db, "main", str)
Call CopyData(db, db, "main", str)
Command1.Enabled = False
Command2.Caption = "完成"
Command2.SetFocus
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -