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

📄 frmsrchhandover1.frm

📁 智能门锁的程序,用于控制门锁发卡程序,是科布尔的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSrchHandOver 
   Caption         =   "查询交接班"
   ClientHeight    =   6810
   ClientLeft      =   45
   ClientTop       =   1140
   ClientWidth     =   9510
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   10.5
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   6810
   ScaleWidth      =   9510
   Begin VB.Data Data2 
      Caption         =   "Data2"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   2040
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   120
      Visible         =   0   'False
      Width           =   1260
   End
   Begin VB.Data Data3 
      Caption         =   "Data3"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   3600
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   120
      Visible         =   0   'False
      Width           =   1575
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "C:\k-2000\ICData.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   360
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "OperatorDate"
      Top             =   120
      Visible         =   0   'False
      Width           =   1500
   End
End
Attribute VB_Name = "FrmSrchHandOver"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub DBGrid1_Click()
    Dim sICCard As String
    If Data1.Recordset.BOF And Data1.Recordset.EOF Then
       Exit Sub
    End If

    s1 = DBGrid1.Columns(0)
   ' s2 = DBGrid1.Columns(1)
    If s1 = "" Or s2 = "" Then
       Exit Sub
    End If
    sICCard = "select putoutsdate as 发卡时间,shortroomnumber as 房间,ICNumber as 卡号 " & _
       "from iccard where  putoutsdate>='" & s1 & _
       "' and putoutsdate<='" & s2 & "'"
    Data2.RecordSource = sICCard
    Data2.Refresh
    sICCard = "select  cancelsdate as 注销时间,shortroomnumber as 房间,ICNumber as 卡号 " & _
       "from iccard where  not cancellog and cancelsdate>='" & s1 & _
       "' and cancelsdate<='" & s2 & "'"
    Data3.RecordSource = sICCard
    Data3.Refresh

End Sub


Private Sub Form_Load()
    Dim sOperatorDate As String
    Data1.DatabaseName = SystemDir & "icdata.mdb"
    Data2.DatabaseName = SystemDir & "icdata.mdb"
    Data3.DatabaseName = SystemDir & "icdata.mdb"
    'sOperatorDate = "select username as 服务员, workbeginsdate as 上班时间," & _
       "workendsdate as 下班时间 from operatordate"
    'Data1.RecordSource = sOperatorDate
    
End Sub

⌨️ 快捷键说明

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