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

📄 frmreturn2.frm

📁 实现某班级的图书信息管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmReturn 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "返还处理"
   ClientHeight    =   4230
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5400
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4230
   ScaleWidth      =   5400
   Begin VB.Data DataReturn 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   3360
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   2520
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.TextBox TxtBookindex 
      Height          =   285
      Left            =   1200
      TabIndex        =   15
      Top             =   1080
      Width           =   735
   End
   Begin VB.ComboBox cmbReaderindex 
      Height          =   315
      ItemData        =   "FrmReturn2.frx":0000
      Left            =   1200
      List            =   "FrmReturn2.frx":0002
      TabIndex        =   14
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox TxtBorrowTime 
      Height          =   375
      Left            =   1200
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   1800
      Width           =   1575
   End
   Begin VB.TextBox TxtReaderName 
      Height          =   375
      Left            =   3240
      TabIndex        =   6
      Top             =   240
      Width           =   1575
   End
   Begin VB.TextBox TxtReturnTime 
      Height          =   375
      Left            =   1200
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   2520
      Width           =   1575
   End
   Begin VB.CommandButton CmdOK 
      Caption         =   "返还处理"
      Height          =   375
      Left            =   2640
      TabIndex        =   4
      Top             =   3240
      Width           =   1095
   End
   Begin VB.CommandButton CmdExit 
      Caption         =   "关闭"
      Height          =   375
      Left            =   3960
      TabIndex        =   3
      Top             =   3240
      Width           =   1095
   End
   Begin VB.CommandButton CmdPrevious 
      Caption         =   "上一个"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   3240
      Width           =   1095
   End
   Begin VB.CommandButton CmdNext 
      Caption         =   "下一个"
      Height          =   375
      Left            =   1440
      TabIndex        =   1
      Top             =   3240
      Width           =   1095
   End
   Begin VB.ListBox LstBookName 
      Height          =   1140
      Left            =   3240
      TabIndex        =   0
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Data DatBorrow 
      Caption         =   "Data2"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   3240
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   2520
      Visible         =   0   'False
      Width           =   1575
   End
   Begin MSComctlLib.StatusBar StatusBarReturn 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   16
      Top             =   3855
      Width           =   5400
      _ExtentX        =   9525
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   3
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5292
            MinWidth        =   5292
            Text            =   "当前状态:还返处理。"
            TextSave        =   "当前状态:还返处理。"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   4057
            MinWidth        =   4057
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   19599
            MinWidth        =   19599
            Text            =   "帮助请按F1"
            TextSave        =   "帮助请按F1"
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label Label1 
      Caption         =   "读者编号"
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   13
      Top             =   360
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "图书名列表"
      Height          =   255
      Index           =   2
      Left            =   2280
      TabIndex        =   12
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "读者姓名"
      Height          =   255
      Index           =   3
      Left            =   2400
      TabIndex        =   11
      Top             =   360
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "图书编号"
      Height          =   375
      Index           =   4
      Left            =   240
      TabIndex        =   10
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "借阅时间"
      Height          =   375
      Index           =   5
      Left            =   240
      TabIndex        =   9
      Top             =   1920
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "返还时间"
      Height          =   375
      Index           =   6
      Left            =   240
      TabIndex        =   8
      Top             =   2640
      Width           =   1095
   End
End
Attribute VB_Name = "FrmReturn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 '************************************************************************
     '本窗本用于还返处理
 '*************************************************************************
Option Explicit
Private rsReaderindex As Recordset
Private rsName As Recordset

Private Sub CmbReaderindex_Change()


 On Error GoTo err:
    Dim i, j  As Integer
    Dim rsBM As Recordset
    Dim rsName As Recordset
    Dim dbreadermessage As Database
    
    Set dbreadermessage = OpenDatabase("librarydb.mdb")
    Set rsName = dbreadermessage.OpenRecordset("select readername from readermessage where readerindex = " & CmbReaderindex & "")
    
    TxtReaderName.Text = rsName.Fields("readername")
    
    DatBorrow.RecordSource = "select borrowmessage.bookindex ,bookmessage.bookname ,borrowmessage.borrowtime, borrowmessage.returntime from borrowmessage ,bookmessage where bookmessage.bookindex = borrowmessage.bookindex and readerindex = " & CmbReaderindex & " and  borrowmessage.returntime = #1/1/1111#  "
    DatBorrow.Refresh
    
    Set rsBM = DatBorrow.Recordset
    LstBookName.Clear
    
    With rsBM
        MsgBox .Fields("returntime")
         If .RecordCount > 0 Then

⌨️ 快捷键说明

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