📄 frm_sjql.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form Frm_sjql
BorderStyle = 3 'Fixed Dialog
Caption = "历史数据清理"
ClientHeight = 1425
ClientLeft = 4185
ClientTop = 3435
ClientWidth = 3120
Icon = "Frm_sjql.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1425
ScaleWidth = 3120
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 1620
TabIndex = 3
Top = 900
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 360
TabIndex = 2
Top = 900
Width = 915
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 315
Left = 1320
TabIndex = 1
Top = 300
Width = 1395
_ExtentX = 2461
_ExtentY = 556
_Version = 393216
CustomFormat = "yyyy-MM-dd"
Format = 60751875
CurrentDate = 38807
End
Begin VB.Label Label1
Caption = "数据时间段"
Height = 255
Left = 240
TabIndex = 0
Top = 360
Width = 975
End
End
Attribute VB_Name = "Frm_sjql"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo myerr
Dim cn As ADODB.Connection
Set cn = GetCn
msg = MsgBox("是否删除?", vbYesNo + vbQuestion, "提示")
If msg = vbNo Then Exit Sub
cn.Execute "delete from jiaofei where cbrq<=#" & DTPicker1 & "#"
MsgBox "清理完成!", vbExclamation, "提示"
Unload Me
Exit Sub
myerr:
MsgBox Error, vbExclamation, "提示"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -