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

📄 删除考勤信息.frm

📁 着社会科技的发展
💻 FRM
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form 删除考勤信息 
   Caption         =   "删除考勤信息"
   ClientHeight    =   7065
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   11775
   LinkTopic       =   "Form1"
   ScaleHeight     =   7065
   ScaleWidth      =   11775
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   735
      Left            =   6360
      TabIndex        =   8
      Top             =   6000
      Width           =   1455
   End
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "删除考勤信息.frx":0000
      Height          =   1935
      Left            =   360
      OleObjectBlob   =   "删除考勤信息.frx":0014
      TabIndex        =   7
      Top             =   480
      Width           =   9375
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access 2000;"
      DatabaseName    =   "D:\人事管理系统\stuff.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   1080
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "员工考勤表"
      Top             =   0
      Width           =   2775
   End
   Begin VB.Frame Frame1 
      Caption         =   "请输入员工编号与考勤当日"
      Height          =   2415
      Left            =   360
      TabIndex        =   2
      Top             =   3120
      Width           =   9255
      Begin VB.TextBox Text1 
         Height          =   390
         Left            =   1560
         TabIndex        =   6
         Top             =   600
         Width           =   1455
      End
      Begin VB.TextBox Text2 
         Height          =   495
         Left            =   4560
         TabIndex        =   5
         Top             =   480
         Width           =   1575
      End
      Begin VB.Label Label3 
         Caption         =   "考勤当日"
         Height          =   375
         Left            =   3360
         TabIndex        =   4
         Top             =   600
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "员工编号 "
         Height          =   375
         Left            =   480
         TabIndex        =   3
         Top             =   600
         Width           =   975
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查询"
      Height          =   615
      Left            =   2040
      TabIndex        =   1
      Top             =   6120
      Width           =   1575
   End
   Begin VB.CommandButton Command3 
      Caption         =   "删除"
      Height          =   615
      Left            =   4320
      TabIndex        =   0
      Top             =   6120
      Width           =   1455
   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()
  Data1.RecordSource = "select * from 员工考勤表 where 员工编号='" + Trim(Text1.Text) + "'"
   Data1.Refresh

  If Data1.Recordset.RecordCount = 0 Then
MsgBox "纪录不存在!"
End If
End Sub

Private Sub Command2_Click()
Me.Hide
'On Error Resume Next
End Sub

Private Sub Command3_Click()
Data1.Recordset.Delete
'On Error Resume Next
End Sub

⌨️ 快捷键说明

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