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

📄 frmfindborrowinfo.frm

📁 VB+SQL写的图书管理系统,用了ACTIVESKIN界面,请自行下载该控件
💻 FRM
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmfindborrowinfo 
   Caption         =   "查询借书信息"
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7245
   LinkTopic       =   "Form1"
   ScaleHeight     =   5280
   ScaleWidth      =   7245
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "查询结果 "
      Height          =   3015
      Left            =   120
      TabIndex        =   4
      Top             =   2040
      Width           =   6975
      Begin MSDataGridLib.DataGrid DataGrid1 
         Height          =   2655
         Left            =   120
         TabIndex        =   8
         Top             =   240
         Width           =   6735
         _ExtentX        =   11880
         _ExtentY        =   4683
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         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
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3840
      TabIndex        =   3
      Top             =   1560
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "开始查询"
      Height          =   375
      Left            =   1560
      TabIndex        =   2
      Top             =   1560
      Width           =   1455
   End
   Begin VB.Frame Frame1 
      Height          =   1455
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   6975
      Begin VB.OptionButton Option3 
         Caption         =   "按读者姓名查询"
         Height          =   375
         Left            =   960
         TabIndex        =   7
         Top             =   840
         Width           =   1935
      End
      Begin VB.OptionButton Option2 
         Caption         =   "查询未借出图书"
         Height          =   375
         Left            =   3240
         TabIndex        =   6
         Top             =   240
         Width           =   1935
      End
      Begin VB.OptionButton Option1 
         Caption         =   "查询已借出图书"
         Height          =   375
         Left            =   960
         TabIndex        =   5
         Top             =   240
         Width           =   1935
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   3120
         TabIndex        =   1
         Top             =   840
         Width           =   2175
      End
   End
   Begin ACTIVESKINLibCtl.Skin Skin1 
      Left            =   0
      OleObjectBlob   =   "frmfindborrowinfo.frx":0000
      Top             =   0
   End
End
Attribute VB_Name = "frmfindborrowinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
 Dim sql As String
 Dim rs_find As New ADODB.Recordset
 If Option1.Value = True Then
  sql = "select * from 书籍信息 where 是否被借出='是'"
 End If
 If Option2.Value = True Then
   sql = "select * from 书籍信息 where 是否被借出='否'"
 End If
 If Option3.Value = True And Text1.Text <> "" Then
   sql = "select * from 借阅信息 where 读者姓名='" & Text1.Text & "'"
 ElseIf Option3.Value = True And Text1.Text = "" Then
    MsgBox "请输入读者姓名!", vbOKOnly + vbExclamation
    Text1.SetFocus
    Exit Sub
 End If
 
   rs_find.CursorLocation = adUseClient
   rs_find.Open sql, conn, adOpenKeyset, adLockPessimistic
   DataGrid1.AllowAddNew = False
   DataGrid1.AllowDelete = False
   DataGrid1.AllowUpdate = False
   Set DataGrid1.DataSource = rs_find
 
End Sub

Private Sub Command2_Click()
 Unload Me
End Sub


Private Sub Form_Load()
Dim skn
skn = App.Path & "\Book.skn"

'载入时的一些脚本.
Skin1.LoadSkin skn
Skin1.ApplySkin Me.hWnd ' 应用皮肤到这个窗口和它的子控件中

End Sub

⌨️ 快捷键说明

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