📄 frm删除月库.frm
字号:
VERSION 5.00
Begin VB.Form Frm删除月库
Caption = "月库删除"
ClientHeight = 3165
ClientLeft = 60
ClientTop = 345
ClientWidth = 4245
LinkTopic = "Form1"
ScaleHeight = 3165
ScaleWidth = 4245
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Caption = "确定(&E)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 360
TabIndex = 3
Top = 2490
Width = 1245
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "退出(&Q)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 2340
TabIndex = 2
Top = 2490
Width = 1335
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1620
Left = 300
Style = 1 'Simple Combo
TabIndex = 1
Top = 600
Width = 3495
End
Begin VB.Label Label1
Caption = "请选择存在的月工资库:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
TabIndex = 0
Top = 90
Width = 2655
End
End
Attribute VB_Name = "Frm删除月库"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If Len(Combo1.Text) > 0 Then
hxfyn = MsgBox("是否真的删除?", 36)
If hxfyn = vbYes Then
hxfyear = Left(Combo1.Text, 4)
hxfmath = Right(Left(Combo1.Text, 7), 2)
dqklj = xtlj & "data\" & hxfyear & hxfmath & ".mdb"
Kill dqklj
wtb1.Index = "年月"
wtb1.Seek "=", hxfyear, hxfmath
If Not wtb1.NoMatch Then
wtb1.Delete
End If
Combo1.RemoveItem Combo1.ListIndex
End If
Else
hxfyn = MsgBox("未选择工资库,请选择!", 48)
End If
End Sub
Private Sub Command2_Click()
wdb.Close
Unload Me
End Sub
Private Sub Form_Load()
Set wdb = wws.OpenDatabase(xtlj + "dwxx.mdb")
Set wtb1 = wdb.OpenRecordset("月库登记", dbOpenTable)
Combo1.Clear
If wtb1.RecordCount > 0 Then
wtb1.MoveFirst
Do While Not wtb1.EOF
Combo1.AddItem wtb1("年") & "年" & wtb1("月") & "月"
wtb1.MoveNext
Loop
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -