⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmsearch.frm

📁 企业人事管理信息系统,采用VB开发企业人事管理信息系统
💻 FRM
字号:
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         =   "查询"
      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         =   "查找项目:"
         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         =   "查找内容:"
         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 '查找内容
If Combo1.Text = "" Or Combo2.Text = "" Or Text1.Text = "" Then
MsgBox "查询输入不完整!"
Exit Sub
End If

str = Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'" '查询条件

Load frmSearchR '调用查询窗体

'查找
frmSearchR.datPrimaryRS.ConnectionString = conStr
frmSearchR.datPrimaryRS.RecordSource = "select 部门代号,部门,代号ID,姓名,职务,性别,籍贯,民族,出生日期,健康状况,婚姻状况,文化程度,政治面貌,家庭住址,进入单位时间,职称,工资,补贴,备注 from 职工信息 where " & str & " Order by 代号ID"
frmSearchR.datPrimaryRS.Refresh

frmSearchR.Show

Unload Me

End Sub

Private Sub Command2_Click()
Unload Me

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -