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

📄 查询出勤.frm

📁 公司考勤管理系统设计与实施
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form 查询出勤 
   Caption         =   "查询出勤"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
      Bindings        =   "查询出勤.frx":0000
      Height          =   1455
      Left            =   3000
      TabIndex        =   7
      Top             =   4200
      Width           =   5775
      _ExtentX        =   10186
      _ExtentY        =   2566
      _Version        =   393216
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access 2000;"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   3120
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   5760
      Width           =   4695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   855
      Left            =   8880
      TabIndex        =   6
      Top             =   1680
      Width           =   2055
   End
   Begin VB.TextBox Text3 
      Height          =   855
      Left            =   3360
      TabIndex        =   4
      Top             =   3120
      Width           =   3615
   End
   Begin VB.TextBox Text2 
      Height          =   735
      Left            =   3240
      TabIndex        =   3
      Top             =   2040
      Width           =   3495
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   3000
      MaxLength       =   6
      TabIndex        =   0
      Top             =   960
      Width           =   3735
   End
   Begin VB.Label Label3 
      Caption         =   "查询结束日期"
      Height          =   855
      Left            =   600
      TabIndex        =   5
      Top             =   3360
      Width           =   2415
   End
   Begin VB.Label Label2 
      Caption         =   "查询开始日期"
      Height          =   735
      Left            =   720
      TabIndex        =   2
      Top             =   2160
      Width           =   2535
   End
   Begin VB.Label Label1 
      Caption         =   "所要查询的职工号"
      Height          =   735
      Left            =   600
      TabIndex        =   1
      Top             =   1080
      Width           =   2295
   End
End
Attribute VB_Name = "查询出勤"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Do While Len(Text1) <> 6

MsgBox ("职工号有误")
Text1 = InputBox("请再次输入职工号")

Loop
Do While Len(Text2) <> 10
If Len(Text2) <> 10 Then
MsgBox ("开始日期有误")
Text2 = InputBox("请再次输入开始日期")
End If
Loop
Do While Len(Text3) <> 10

If Len(Text3) <> 10 Then
MsgBox ("结束日期有误")
Text3 = InputBox("请再次输入结束日期")
End If
Loop

Dim sql As String
Data1.DatabaseName = "D:\大作业\企业考勤管理系统\公司考勤管理系统\自己动手\爵哥\爵哥\db1.mdb"
xm = Text1
sql = "select * from 出勤管理 where 职工ID=" & "'" & Text1 & "'and 上班日期>" & "#" & Text2 & "# and 上班日期<" & "#" & Text3 & "#    "

Data1.RecordSource = sql
Data1.Refresh

End Sub

⌨️ 快捷键说明

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