pexam13_63.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 247 行

FRM
247
字号
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form Form1 
   Caption         =   "学生信息管理系统"
   ClientHeight    =   2730
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3705
   LinkTopic       =   "Form1"
   ScaleHeight     =   2730
   ScaleWidth      =   3705
   StartUpPosition =   3  '窗口缺省
   Begin TabDlg.SSTab SSTab1 
      Height          =   2505
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3495
      _ExtentX        =   6165
      _ExtentY        =   4419
      _Version        =   393216
      Tabs            =   2
      Tab             =   1
      TabHeight       =   520
      TabCaption(0)   =   "数据查询"
      TabPicture(0)   =   "pexam13_63.frx":0000
      Tab(0).ControlEnabled=   0   'False
      Tab(0).Control(0)=   "Adodc1"
      Tab(0).Control(0).Enabled=   0   'False
      Tab(0).Control(1)=   "Command2"
      Tab(0).Control(1).Enabled=   0   'False
      Tab(0).Control(2)=   "Command1"
      Tab(0).Control(2).Enabled=   0   'False
      Tab(0).Control(3)=   "Frame1"
      Tab(0).Control(3).Enabled=   0   'False
      Tab(0).ControlCount=   4
      TabCaption(1)   =   "数据维护"
      TabPicture(1)   =   "pexam13_63.frx":001C
      Tab(1).ControlEnabled=   -1  'True
      Tab(1).Control(0)=   "Frame2"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "Command3"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).Control(2)=   "Command4"
      Tab(1).Control(2).Enabled=   0   'False
      Tab(1).ControlCount=   3
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   375
         Left            =   -73440
         Top             =   1920
         Visible         =   0   'False
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   661
         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=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\mydb\学生.mdb"
         OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\mydb\学生.mdb"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc1"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin VB.CommandButton Command4 
         Caption         =   "退出"
         Height          =   495
         Left            =   2400
         TabIndex        =   12
         Top             =   1320
         Width           =   735
      End
      Begin VB.CommandButton Command3 
         Caption         =   "确定"
         Height          =   495
         Left            =   2400
         TabIndex        =   11
         Top             =   720
         Width           =   735
      End
      Begin VB.Frame Frame2 
         Caption         =   "请选择表:"
         Height          =   1695
         Left            =   240
         TabIndex        =   7
         Top             =   600
         Width           =   1815
         Begin VB.OptionButton Option6 
            Caption         =   "学生基本信息表"
            Height          =   375
            Left            =   120
            TabIndex        =   10
            Top             =   1200
            Width           =   1575
         End
         Begin VB.OptionButton Option5 
            Caption         =   "专业表"
            Height          =   375
            Left            =   120
            TabIndex        =   9
            Top             =   720
            Width           =   855
         End
         Begin VB.OptionButton Option4 
            Caption         =   "系表"
            Height          =   375
            Left            =   120
            TabIndex        =   8
            Top             =   240
            Value           =   -1  'True
            Width           =   855
         End
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   495
         Left            =   -72720
         TabIndex        =   6
         Top             =   1200
         Width           =   735
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   495
         Left            =   -72720
         TabIndex        =   5
         Top             =   600
         Width           =   735
      End
      Begin VB.Frame Frame1 
         Caption         =   "请选择查询方式"
         Height          =   1815
         Left            =   -74880
         TabIndex        =   1
         Top             =   480
         Width           =   1815
         Begin VB.OptionButton Option3 
            Caption         =   "按班级查询"
            Height          =   375
            Left            =   240
            TabIndex        =   4
            Top             =   1320
            Width           =   1335
         End
         Begin VB.OptionButton Option2 
            Caption         =   "按专业查询"
            Height          =   375
            Left            =   240
            TabIndex        =   3
            Top             =   840
            Width           =   1215
         End
         Begin VB.OptionButton Option1 
            Caption         =   "按系查询"
            Height          =   375
            Left            =   240
            TabIndex        =   2
            Top             =   360
            Value           =   -1  'True
            Width           =   1215
         End
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  If Option1.Value = True Then
    deptno = InputBox("请输入系编号")
    tabstring1 = "Select 系.系名称, 专业.专业名称, 学生基本信息.班级, 学生基本信息.学号, 学生基本信息.姓名, 学生基本信息.性别 "
    tabstring2 = "From 专业, 系, 学生基本信息 "
    tabstring3 = "Where 专业.系编号=系.系编号 And 专业.专业编号=学生基本信息.专业编号"
    tabstring4 = " and 系.系编号=" & "'" & deptno & "'"
    tabstring = tabstring1 & tabstring2 & tabstring3 & tabstring4
  ElseIf Option2.Value = True Then
    deptno = InputBox("请输入专业编号")
    tabstring1 = "Select 系.系名称,专业.专业名称, 学生基本信息.班级, 学生基本信息.学号, 学生基本信息.姓名, 学生基本信息.性别 "
    tabstring2 = "From 专业, 系, 学生基本信息 "
    tabstring3 = "Where 专业.系编号=系.系编号 And 专业.专业编号=学生基本信息.专业编号"
    tabstring4 = " and 专业.专业编号=" & "'" & deptno & "'"
    tabstring = tabstring1 & tabstring2 & tabstring3 & tabstring4
  ElseIf Option3.Value = True Then
    deptno = InputBox("请输入班号")
    tabstring1 = "Select 系.系名称,专业.专业名称, 学生基本信息.班级, 学生基本信息.学号, 学生基本信息.姓名, 学生基本信息.性别 "
    tabstring2 = "From 专业, 系, 学生基本信息 "
    tabstring3 = "Where 专业.系编号=系.系编号 And 专业.专业编号=学生基本信息.专业编号"
    tabstring4 = " and 学生基本信息.班级=" & "'" & deptno & "'"
    tabstring = tabstring1 & tabstring2 & tabstring3 & tabstring4
  End If
  Form5.Show
End Sub

Private Sub Command2_Click()
  End
End Sub

Private Sub Command3_Click()
  If Option4.Value = True Then
  tabstring = "系"
  Form2.Show
ElseIf Option5.Value = True Then
  tabstring = "专业"
  Form3.Show
Else
  tabstring = "学生基本信息"
  Form4.Show
End If
End Sub

Private Sub Command4_Click()
  End
End Sub

⌨️ 快捷键说明

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