📄 findrq.frm
字号:
VERSION 5.00
Begin VB.Form findrq
Caption = "按业务日期查询"
ClientHeight = 1725
ClientLeft = 4215
ClientTop = 2910
ClientWidth = 6435
Icon = "findrq.frx":0000
LinkTopic = "Form1"
ScaleHeight = 1725
ScaleWidth = 6435
Begin VB.CommandButton Command1
Caption = "查 询"
Default = -1 'True
Height = 375
Left = 2040
TabIndex = 2
Top = 1080
Width = 2295
End
Begin VB.TextBox Text2
Height = 375
Left = 3960
TabIndex = 1
Top = 480
Width = 2175
End
Begin VB.TextBox Text1
Height = 375
Left = 1320
TabIndex = 0
Top = 480
Width = 2055
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "正确日期格式:yyyy-mm-dd 如:2003-07-23"
ForeColor = &H00FF0000&
Height = 180
Left = 2640
TabIndex = 5
Top = 240
Width = 3510
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "查询日期:"
Height = 180
Left = 240
TabIndex = 4
Top = 600
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "至"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 180
Left = 3600
TabIndex = 3
Top = 600
Width = 210
End
End
Attribute VB_Name = "findrq"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Load jg
jg.Data1.RecordSource = "select * from yw where 日期>=#" & Text1.Text & "# and 日期<=#" & Text2.Text & "#"
On Error GoTo g
jg.Data1.Refresh
jg.Show vbModal
g:
MsgBox "如果日期为空或输入格式不正确,会影响查找结果,正确格式如2003-08-22!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -