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

📄 学生信息处理.frm

📁 学生管理系统虽然不是很完善
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 学生信息管理 
   Caption         =   "学生信息管理"
   ClientHeight    =   8205
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10890
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   10.5
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form2"
   ScaleHeight     =   8205
   ScaleWidth      =   10890
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      DataField       =   "学生编号"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   0
      Left            =   1560
      TabIndex        =   32
      Text            =   "Text1"
      Top             =   1920
      Width           =   2655
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "J:\Program Files\Microsoft Visual Studio\CXL\Imagelist.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      EOFAction       =   2  'Add New
      Exclusive       =   0   'False
      Height          =   495
      Left            =   480
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "学生信息数据表"
      Top             =   7440
      Visible         =   0   'False
      Width           =   4455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "成绩查询"
      Height          =   495
      Index           =   1
      Left            =   7320
      TabIndex        =   31
      Top             =   7320
      Width           =   2535
   End
   Begin VB.CommandButton Command5 
      Caption         =   "结束操作"
      Height          =   495
      Index           =   4
      Left            =   9120
      TabIndex        =   30
      Top             =   4800
      Width           =   1455
   End
   Begin VB.CommandButton Command4 
      Caption         =   "单一查询"
      Height          =   495
      Index           =   3
      Left            =   9120
      TabIndex        =   29
      Top             =   3840
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "添加记录"
      Height          =   495
      Index           =   2
      Left            =   9120
      TabIndex        =   28
      Top             =   2880
      Width           =   1455
   End
   Begin VB.Frame Frame1 
      Caption         =   "执行操作"
      Height          =   4575
      Left            =   8880
      TabIndex        =   26
      Top             =   2040
      Width           =   1935
      Begin VB.ComboBox Combo1 
         Height          =   330
         ItemData        =   "学生信息处理.frx":0000
         Left            =   360
         List            =   "学生信息处理.frx":000D
         TabIndex        =   34
         Text            =   "Combo1"
         Top             =   3840
         Width           =   1215
      End
      Begin VB.CommandButton Command6 
         Caption         =   "执行综合查询"
         Height          =   495
         Left            =   240
         TabIndex        =   33
         Top             =   2280
         Width           =   1455
      End
      Begin VB.CommandButton Command3 
         Caption         =   "更新记录"
         Height          =   495
         Index           =   0
         Left            =   240
         TabIndex        =   27
         Top             =   1320
         Width           =   1455
      End
   End
   Begin VB.TextBox Text1 
      DataField       =   "宿舍电话"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   12
      Left            =   6000
      TabIndex        =   25
      Text            =   "Text1"
      Top             =   6000
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "宿舍号码"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   11
      Left            =   6000
      TabIndex        =   24
      Text            =   "Text1"
      Top             =   5160
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "家长姓名"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   10
      Left            =   6000
      TabIndex        =   23
      Text            =   "Text1"
      Top             =   4320
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "籍贯"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   9
      Left            =   6000
      TabIndex        =   22
      Text            =   "Text1"
      Top             =   3600
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "出生年月"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   8
      Left            =   6000
      TabIndex        =   21
      Text            =   "Text1"
      Top             =   2760
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "所在班级"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   7
      Left            =   6000
      TabIndex        =   20
      Text            =   "Text1"
      Top             =   1920
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "所在年级"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   6
      Left            =   1560
      TabIndex        =   19
      Text            =   "Text1"
      Top             =   6840
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "专业名称"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   5
      Left            =   1560
      TabIndex        =   18
      Text            =   "Text1"
      Top             =   6000
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "学生年龄"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   4
      Left            =   1560
      TabIndex        =   17
      Text            =   "Text1"
      Top             =   5160
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "所在院系"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   3
      Left            =   1560
      TabIndex        =   16
      Text            =   "Text1"
      Top             =   4320
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "学生性别"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   2
      Left            =   1560
      TabIndex        =   15
      Text            =   "Text1"
      Top             =   3600
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      DataField       =   "学生姓名"
      DataSource      =   "Data1"
      Height          =   375
      Index           =   1
      Left            =   1560
      TabIndex        =   14
      Text            =   "Text1"
      Top             =   2760
      Width           =   2655
   End
   Begin VB.Label Label2 
      Caption         =   "宿舍电话"
      Height          =   255
      Index           =   12
      Left            =   4800
      TabIndex        =   13
      Top             =   6000
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "宿舍号码"
      Height          =   255
      Index           =   11
      Left            =   4800
      TabIndex        =   12
      Top             =   5160
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "家长姓名"
      Height          =   255
      Index           =   10
      Left            =   4800
      TabIndex        =   11
      Top             =   4320
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "籍贯"
      Height          =   255
      Index           =   9
      Left            =   4800
      TabIndex        =   10
      Top             =   3600
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "专业名称"
      Height          =   255
      Index           =   8
      Left            =   360
      TabIndex        =   9
      Top             =   6000
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "所在班级"
      Height          =   255
      Index           =   7
      Left            =   4800
      TabIndex        =   8
      Top             =   2040
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "出生年月"
      Height          =   255
      Index           =   6
      Left            =   4800
      TabIndex        =   7
      Top             =   2760
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "所在年级"
      Height          =   255
      Index           =   5
      Left            =   360
      TabIndex        =   6
      Top             =   6840
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "学生编号"
      Height          =   255
      Index           =   4
      Left            =   360
      TabIndex        =   5
      Top             =   2040
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "学生年龄"
      Height          =   255
      Index           =   3
      Left            =   360
      TabIndex        =   4
      Top             =   5160
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "所在院系"
      Height          =   255
      Index           =   2
      Left            =   360
      TabIndex        =   3
      Top             =   4320
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "学生性别"
      Height          =   255
      Index           =   1
      Left            =   360
      TabIndex        =   2
      Top             =   3600
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "学生姓名"
      Height          =   255
      Index           =   0
      Left            =   360
      TabIndex        =   1
      Top             =   2760
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "信息管理"
      BeginProperty Font 
         Name            =   "华文彩云"
         Size            =   42
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   3600
      TabIndex        =   0
      Top             =   480
      Width           =   3615
   End
End
Attribute VB_Name = "学生信息管理"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(index As Integer)
Load Form2
Form2.Show
学生信息管理.Hide
End Sub

Private Sub Command2_Click(index As Integer)
   Data1.Recordset.AddNew
End Sub

Private Sub Command3_Click(index As Integer)
  Data1.UpdateRecord
End Sub

Private Sub Command4_Click(index As Integer)
Dim msg
oldmark = Data1.Recordset.Bookmark
msg = Trim(InputBox("请输入学生编号", "查询"))
msg = "学生编号 like '" & msg & "'"
Data1.Recordset.FindFirst msg
If Data1.Recordset.NoMatch Then
MsgBox ("没有符合条件的记录")
End If
End Sub

Private Sub Command5_Click(index As Integer)
End
End Sub

Private Sub Command6_Click()
Dim msg
oldmark = Data1.Recordset.Bookmark
msg = Trim(InputBox("请输入" + Combo1.Text, "查询"))
If Combo1.Text = "学生编号" Then
msg = "学生编号 like '" & msg & "'"
End If
If Combo1.Text = "学生姓名" Then
msg = "学生姓名 like '" & msg & "'"
End If
If Combo1.Text = "所在班级" Then
msg = "所在班级 like '" & msg & "'"
End If
Data1.Recordset.FindFirst msg
If Data1.Recordset.NoMatch Then
MsgBox ("没有符合条件的记录")
End If
End Sub

⌨️ 快捷键说明

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