?? frmsearch.frm
字號(hào):
VERSION 5.00
Begin VB.Form frmSearch
Caption = "查找"
ClientHeight = 2460
ClientLeft = 60
ClientTop = 345
ClientWidth = 6630
LinkTopic = "Form1"
ScaleHeight = 2460
ScaleWidth = 6630
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "查詢(xún)"
Height = 1815
Left = 600
TabIndex = 2
Top = 240
Width = 4215
Begin VB.TextBox Text1
Height = 375
Left = 1440
TabIndex = 8
Top = 1200
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
ItemData = "frmSearch.frx":0000
Left = 1440
List = "frmSearch.frx":002E
TabIndex = 4
Top = 240
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
ItemData = "frmSearch.frx":00A0
Left = 1440
List = "frmSearch.frx":00B6
TabIndex = 3
Top = 720
Width = 2655
End
Begin VB.Label Label1
Caption = "查找項(xiàng)目:"
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 = 240
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 = 6
Top = 720
Width = 1215
End
Begin VB.Label Label3
Caption = "查找內(nèi)容:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 5
Top = 1200
Width = 1335
End
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 375
Left = 4920
TabIndex = 1
Top = 360
Width = 975
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 4920
TabIndex = 0
Top = 840
Width = 975
End
End
Attribute VB_Name = "frmSearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str As String '查找內(nèi)容
If Combo1.Text = "" Or Combo2.Text = "" Or Text1.Text = "" Then
MsgBox "查詢(xún)輸入不完整!"
Exit Sub
End If
str = Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'" '查詢(xún)條件
Load frmSearchR '調(diào)用查詢(xún)窗體
'查找
frmSearchR.datPrimaryRS.ConnectionString = conStr
frmSearchR.datPrimaryRS.RecordSource = "select 部門(mén)代號(hào),部門(mén),代號(hào)ID,姓名,職務(wù),性別,籍貫,民族,出生日期,健康狀況,婚姻狀況,文化程度,政治面貌,家庭住址,進(jìn)入單位時(shí)間,職稱(chēng),工資,補(bǔ)貼,備注 from 職工信息 where " & str & " Order by 代號(hào)ID"
frmSearchR.datPrimaryRS.Refresh
frmSearchR.Show
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -