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

📄 bkout.frm

📁 一个数据库程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 图书基本信息表 where 是否在库='1'"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   240
      Top             =   8160
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "种类表"
      Caption         =   "Adodc2"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataListLib.DataCombo DataCombo1 
      Bindings        =   "bkout.frx":325F
      DataSource      =   "Adodc2"
      Height          =   315
      Left            =   1080
      TabIndex        =   2
      Top             =   6000
      Width           =   1215
      _ExtentX        =   2143
      _ExtentY        =   582
      _Version        =   393216
      Style           =   2
      ListField       =   "种类"
      Text            =   ""
   End
   Begin MSDataListLib.DataCombo DataCombo2 
      Bindings        =   "bkout.frx":3274
      Height          =   315
      Left            =   3240
      TabIndex        =   3
      Top             =   6000
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      _Version        =   393216
      Style           =   2
      ListField       =   "图书种类"
      Text            =   ""
   End
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   330
      Left            =   1440
      Top             =   8160
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=图书管理数据库;Data Source=(local)"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "图书种类表"
      Caption         =   "Adodc3"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label1 
      BackColor       =   &H80000000&
      Caption         =   "搜索"
      Height          =   255
      Left            =   600
      TabIndex        =   9
      Top             =   5400
      Width           =   375
   End
   Begin VB.Label Label2 
      BackColor       =   &H80000000&
      Caption         =   "方式"
      Height          =   255
      Left            =   600
      TabIndex        =   8
      Top             =   6000
      Width           =   375
   End
   Begin VB.Label Label3 
      BackColor       =   &H80000000&
      Caption         =   "图书种类"
      Height          =   255
      Left            =   2400
      TabIndex        =   7
      Top             =   6000
      Width           =   735
   End
End
Attribute VB_Name = "bkout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim str As String
Dim rs As Recordset
Public n As Integer
 
Private Sub Command4_Click()

    Adodc1.RecordSource = "multisearch '" & Trim(Text1.Text) & "'," & "'" & Trim(DataCombo1.Text) & "'," & "'" & Trim(DataCombo2.Text) & "'"
    Adodc1.Refresh
    
End Sub

Private Sub Form_Load()
 
 n = 0
End Sub
Private Sub Command1_Click()
If MsgBox("是否删除此书?", vbYesNo, "信息提示") = vbYes Then
'Adodc1.Recordset.Delete
str = "delete 图书基本信息表 where 图书编号='" & Trim(DataGrid1.Text) & "'"
'MsgBox DataGrid1.Text
exesql (str)

str = "select * from 图书基本信息表 where 图书编号='" & Trim(DataGrid1.Text) & "'"
Set rs = exesql(str)
Adodc1.Refresh
    If rs.RecordCount <> 0 Then
       MsgBox "此书不在书库,不能删除", vbOKOnly + vbExclamation, "信息提示"
    End If
End If

End Sub


Private Sub Command3_Click()
Unload Me
End Sub


Private Sub DataGrid1_HeadClick(ByVal ColIndex As Integer)

If n = 0 Then
    With Adodc1.Recordset
    .Sort = .Fields(ColIndex).Name & " DESC"
    End With
    DataGrid1.Refresh
    n = 1
Else
    With Adodc1.Recordset
    .Sort = .Fields(ColIndex).Name & " ASC"
    End With
    DataGrid1.Refresh
    n = 0
End If
End Sub

Private Sub Form_Resize()
    DataGrid1.Width = bkout.Width
    DataGrid1.Height = bkout.Height - 1800
    Text1.Top = bkout.Height - 1500
    Label1.Top = bkout.Height - 1500
    Label2.Top = bkout.Height - 1000
    DataCombo1.Top = bkout.Height - 1000
    Label3.Top = bkout.Height - 1000
    DataCombo2.Top = bkout.Height - 1000
    Command4.Top = bkout.Height - 1000
    
    Command1.Top = bkout.Height - 1000
    Command3.Top = bkout.Height - 1000
End Sub

⌨️ 快捷键说明

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