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

📄 按档案名查询.frm

📁 档案管理系统源码档 案管理系统源码
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form9 
   BackColor       =   &H00FFFFC0&
   Caption         =   "按档案名查询"
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7920
   LinkTopic       =   "Form9"
   ScaleHeight     =   5280
   ScaleWidth      =   7920
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   615
      Left            =   6840
      TabIndex        =   18
      Top             =   4560
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查找"
      Height          =   495
      Left            =   4200
      TabIndex        =   17
      Top             =   360
      Width           =   855
   End
   Begin VB.TextBox Text7 
      DataField       =   "asno"
      Height          =   375
      Left            =   4440
      TabIndex        =   16
      Top             =   2520
      Width           =   2175
   End
   Begin VB.TextBox Text6 
      DataField       =   "room"
      Height          =   495
      Left            =   1200
      TabIndex        =   14
      Top             =   2520
      Width           =   1695
   End
   Begin VB.TextBox Text5 
      DataField       =   "appearence"
      Height          =   375
      Left            =   4440
      TabIndex        =   12
      Top             =   2040
      Width           =   2175
   End
   Begin VB.TextBox Text4 
      DataField       =   "dno"
      Height          =   375
      Left            =   1200
      TabIndex        =   10
      Top             =   2040
      Width           =   1695
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   4440
      TabIndex        =   8
      Top             =   1560
      Width           =   2175
   End
   Begin VB.TextBox Text2 
      DataField       =   "ano"
      Height          =   375
      Left            =   1200
      TabIndex        =   6
      Top             =   1560
      Width           =   1695
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   975
      Left            =   840
      TabIndex        =   4
      Top             =   3840
      Width           =   5895
      _ExtentX        =   10398
      _ExtentY        =   1720
      _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
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   5040
      Top             =   3960
      Visible         =   0   'False
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from archives "
      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 VB.CommandButton Command3 
      Caption         =   "取消"
      Height          =   495
      Left            =   5400
      TabIndex        =   2
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2160
      TabIndex        =   1
      Text            =   " "
      Top             =   360
      Width           =   1575
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "asno"
      Height          =   615
      Left            =   3120
      TabIndex        =   15
      Top             =   2640
      Width           =   855
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "room"
      Height          =   495
      Left            =   240
      TabIndex        =   13
      Top             =   2640
      Width           =   615
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "appearence"
      Height          =   375
      Left            =   3120
      TabIndex        =   11
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "dno"
      Height          =   375
      Left            =   240
      TabIndex        =   9
      Top             =   2040
      Width           =   615
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "aname"
      DataField       =   "aname"
      Height          =   375
      Left            =   3120
      TabIndex        =   7
      Top             =   1560
      Width           =   975
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "ano"
      Height          =   375
      Left            =   240
      TabIndex        =   5
      Top             =   1560
      Width           =   735
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "查询结果"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   855
      Left            =   2640
      TabIndex        =   3
      Top             =   1080
      Width           =   3495
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "请输入档案名:"
      Height          =   375
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   1575
   End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim result As Integer



Private Sub Command2_Click()
Unload Me
Exit Sub
End Sub

Private Sub Command1_Click()
Adodc1.RecordSource = "select * from archives WHERE aname Like'" & Text1 & "%'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
  Set DataGrid1.DataSource = Adodc1
  Set Text2.DataSource = Adodc1
   Set Text3.DataSource = Adodc1
   Set Text4.DataSource = Adodc1
   Set Text5.DataSource = Adodc1
   Set Text6.DataSource = Adodc1
   Set Text7.DataSource = Adodc1
Else
MsgBox "没有找到符合条件的记录!请重新输入"
Text1.Text = ""
End If
End Sub

Private Sub Command3_Click()
Text1.Text = ""

End Sub

Private Sub Data1_Validate(Action As Integer, Save As Integer)

End Sub

Private Sub Command4_Click(Index As Integer)

End Sub

Private Sub Form_Activate()
MsgBox "输入档案名称"
End Sub

⌨️ 快捷键说明

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