📄 frmsearch1.frm
字号:
VERSION 5.00
Begin VB.Form frmsearch1
BorderStyle = 3 'Fixed Dialog
Caption = "条件查询"
ClientHeight = 2100
ClientLeft = 45
ClientTop = 330
ClientWidth = 5610
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2100
ScaleWidth = 5610
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 4560
TabIndex = 2
Top = 720
Width = 975
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 375
Left = 4560
TabIndex = 1
Top = 240
Width = 975
End
Begin VB.Frame Frame1
Caption = "查询"
Height = 1815
Left = 240
TabIndex = 0
Top = 120
Width = 4215
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
TabIndex = 8
Top = 1200
Width = 2655
End
Begin VB.ComboBox Combo2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1440
TabIndex = 6
Top = 720
Width = 2655
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 = 360
Left = 1440
TabIndex = 4
Top = 240
Width = 2655
End
Begin VB.Label Label3
Caption = "查找内容:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 7
Top = 1200
Width = 1335
End
Begin VB.Label Label2
Caption = "操作符:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 5
Top = 720
Width = 1215
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 = 255
Left = 240
TabIndex = 3
Top = 240
Width = 1335
End
End
End
Attribute VB_Name = "frmsearch1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str As String '查找内容
If Combo1.Text = "" Or Combo2.Text = "" Or Text1.Text = "" Then
MsgBox "查询输入不完整!"
Exit Sub
End If
str = Combo1.Text & " " & Combo2.Text & Trim(Text1.Text) '查询条件
Load frmCXLS '调用查询窗体
'查找
frmCXLS.datPrimaryRS.ConnectionString = constr
frmCXLS.datPrimaryRS.RecordSource = "select * from 基本工资表 where " & str & " Order by 员工编号"
frmCXLS.datPrimaryRS.Refresh
frmCXLS.Show
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem "员工编号"
Combo1.AddItem "员工姓名"
Combo1.AddItem "所属部门"
Combo1.AddItem "工龄"
Combo1.AddItem "基本工资"
Combo2.AddItem ">="
Combo2.AddItem ">"
Combo2.AddItem "="
Combo2.AddItem "<"
Combo2.AddItem "<="
Combo2.AddItem "<>"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -