📄 formygxxcx.frm
字号:
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column08
DataField = "ic"
Caption = "身份证号码"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column09
DataField = "tel"
Caption = "联系电话"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column10
DataField = "address"
Caption = "家庭住址"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column11
DataField = "padtime"
Caption = "填表时间"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column12
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1005.165
EndProperty
BeginProperty Column01
ColumnWidth = 1005.165
EndProperty
BeginProperty Column02
ColumnWidth = 1005.165
EndProperty
BeginProperty Column03
ColumnWidth = 1005.165
EndProperty
BeginProperty Column04
ColumnWidth = 1005.165
EndProperty
BeginProperty Column05
ColumnWidth = 1005.165
EndProperty
BeginProperty Column06
ColumnWidth = 1005.165
EndProperty
BeginProperty Column07
ColumnWidth = 1005.165
EndProperty
BeginProperty Column08
EndProperty
BeginProperty Column09
EndProperty
BeginProperty Column10
EndProperty
BeginProperty Column11
EndProperty
BeginProperty Column12
EndProperty
EndProperty
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "查找:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1920
TabIndex = 3
Top = 5040
Width = 855
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "按"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 2
Top = 5040
Width = 495
End
End
Attribute VB_Name = "Form员工信息查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'判断按什么查询是否为空
If Len(Trim(Combo1.Text)) = 0 Then
MsgBox "请选择你要按什么查询!", vbOKOnly + vbExclamation, "提示"
Text1.Text = ""
Exit Sub
End If
'判断按什么字段查询是否为空
If Text1.Text = "" Then
MsgBox "请选择你要按什么字段查询!", vbOKOnly + vbExclamation, "提示"
Text1.SetFocus
Exit Sub
End If
'选择为员工编号的情况
If Combo1.Text = "员工编号" Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from employermessege where eid='" & Trim(Text1.Text) & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF = True Then
MsgBox "没找到相关信息", vbOKOnly + vbExclamation, "提示"
Exit Sub
End If
Set DataGrid1.DataSource = Adodc1
End If
'选择为姓名的情况
If Combo1.Text = "姓名" Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from employermessege where ename='" & Trim(Text1.Text) & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF = True Then
MsgBox "没找到相关信息", vbOKOnly + vbExclamation, "提示"
Exit Sub
End If
Set DataGrid1.DataSource = Adodc1
End If
'选择为性别的情况
If Combo1.Text = "性别" Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from employermessege where esex='" & Trim(Text1.Text) & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF = True Then
MsgBox "没找到相关信息", vbOKOnly + vbExclamation, "提示"
Exit Sub
End If
Set DataGrid1.DataSource = Adodc1
End If
'选择为所属部门的情况
If Combo1.Text = "所属部门" Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from employermessege where branch='" & Trim(Text1.Text) & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF = True Then
MsgBox "没找到相关信息", vbOKOnly + vbExclamation, "提示"
Exit Sub
End If
Set DataGrid1.DataSource = Adodc1
End If
End Sub
Private Sub Command2_Click()
Form用户管理.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -