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

📄 form2.frm

📁 此为一学生档案管理系统。学生档案管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端应用程序的开发两个方面。
💻 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 Form2 
   Caption         =   "学生档案管理"
   ClientHeight    =   5565
   ClientLeft      =   60
   ClientTop       =   630
   ClientWidth     =   9150
   Icon            =   "Form2.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   5565
   ScaleWidth      =   9150
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "个人成绩:"
      Height          =   4815
      Left            =   5400
      TabIndex        =   16
      Top             =   360
      Width           =   3615
      Begin VB.CommandButton Command1 
         Caption         =   "|<"
         Height          =   375
         Index           =   0
         Left            =   120
         TabIndex        =   20
         Top             =   4200
         Width           =   855
      End
      Begin VB.CommandButton Command1 
         Caption         =   "<<"
         Height          =   375
         Index           =   1
         Left            =   960
         TabIndex        =   19
         Top             =   4200
         Width           =   855
      End
      Begin VB.CommandButton Command1 
         Caption         =   ">>"
         Height          =   375
         Index           =   2
         Left            =   1800
         TabIndex        =   18
         Top             =   4200
         Width           =   855
      End
      Begin VB.CommandButton Command1 
         Caption         =   ">|"
         Height          =   375
         Index           =   3
         Left            =   2640
         TabIndex        =   17
         Top             =   4200
         Width           =   855
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "Form2.frx":030A
         Height          =   3495
         Left            =   240
         TabIndex        =   21
         Top             =   480
         Width           =   3135
         _ExtentX        =   5530
         _ExtentY        =   6165
         _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.Frame Frame1 
      Caption         =   "个人档案:"
      Height          =   4815
      Left            =   120
      TabIndex        =   0
      Top             =   360
      Width           =   5175
      Begin VB.TextBox Text1 
         DataField       =   "学号"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   7
         Text            =   "Text1"
         Top             =   480
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         DataField       =   "姓名"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   6
         Text            =   "Text1"
         Top             =   1080
         Width           =   1095
      End
      Begin VB.TextBox Text3 
         DataField       =   "性别"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   5
         Text            =   "Text1"
         Top             =   1680
         Width           =   1095
      End
      Begin VB.TextBox Text4 
         DataField       =   "年龄"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   4
         Text            =   "Text1"
         Top             =   2280
         Width           =   1095
      End
      Begin VB.TextBox Text5 
         DataField       =   "QQ"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   3480
         Width           =   1095
      End
      Begin VB.TextBox Text6 
         DataField       =   "电话"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   720
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   2880
         Width           =   1095
      End
      Begin VB.TextBox Text7 
         DataField       =   "地址"
         DataSource      =   "Adodc1"
         Height          =   735
         Left            =   2040
         TabIndex        =   1
         Text            =   "Text1"
         Top             =   3360
         Width           =   3015
      End
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   375
         Left            =   480
         Top             =   4200
         Width           =   4215
         _ExtentX        =   7435
         _ExtentY        =   661
         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         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   ""
         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.Label Label1 
         Caption         =   "学号:"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   15
         Top             =   600
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "姓名:"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   14
         Top             =   1200
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "性别:"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   13
         Top             =   1800
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "年龄:"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   12
         Top             =   2400
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "QQ:"
         Height          =   255
         Index           =   4
         Left            =   120
         TabIndex        =   11
         Top             =   3600
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "电话:"
         Height          =   255
         Index           =   5
         Left            =   120
         TabIndex        =   10
         Top             =   3000
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "地址:"
         Height          =   255
         Index           =   6
         Left            =   2040
         TabIndex        =   9
         Top             =   3120
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "照片:"
         Height          =   255
         Index           =   8
         Left            =   2040
         TabIndex        =   8
         Top             =   360
         Width           =   615
      End
      Begin VB.Image Image1 
         DataField       =   "图片"
         DataSource      =   "Adodc1"
         Height          =   2295
         Left            =   2040
         Top             =   720
         Width           =   3015
      End
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   375
      Left            =   5880
      Top             =   480
      Width           =   2655
      _ExtentX        =   4683
      _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         =   0
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   ""
      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.Menu chaxun 
      Caption         =   "成绩查询 (&c)"
   End
   Begin VB.Menu dangan 
      Caption         =   "档案查询(&d)"
   End
   Begin VB.Menu xiugai 
      Caption         =   "信息修改(&x)"
   End
   Begin VB.Menu xiugai1 
      Caption         =   "成绩修改(&g)"
   End
   Begin VB.Menu close 
      Caption         =   "退出(&t)"
   End
   Begin VB.Menu bz 
      Caption         =   "帮助(&b)"
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub bz_Click()
Form7.Show
End Sub

Private Sub chaxun_Click()
Form5.Show 1
End Sub

Private Sub close_Click()
End
End Sub

Private Sub Command1_Click(Index As Integer)
If Index = 0 Then
   Adodc2.Recordset.MoveFirst
End If
If Index = 1 Then
   If Adodc2.Recordset.BOF Then
   Adodc2.Recordset.MoveLast
   Else
   Adodc2.Recordset.MovePrevious
   End If
End If
If Index = 2 Then
   If Adodc2.Recordset.EOF Then
   Adodc2.Recordset.MoveFirst
   Else
   Adodc2.Recordset.MoveNext
   End If
End If
If Index = 3 Then
   Adodc2.Recordset.MoveLast
End If
End Sub


Private Sub dangan_Click()
Form3.Show
End Sub

Private Sub Form_Load()
Dim i As Integer
Dim str As String


Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\data.MDe;Persist Security Info=False"
Adodc1.CommandType = adCmdText
SQL = "select * from data order by 学号"
Adodc1.RecordSource = SQL
Adodc1.Refresh

str = "select 学号,学期,科目,成绩 from chengji where 学号 =  " & Val(Text1.Text) & " order by 学期"
'MsgBox str
Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\data.MDe;Persist Security Info=False"
Adodc2.CommandType = adCmdText
SQL = str
Adodc2.RecordSource = SQL
tablename = "orders"
Adodc2.Refresh
Set DataGrid1.DataSource = Adodc2
DataGrid1.Refresh
End Sub




Private Sub Text1_Change()
Dim i As Integer
Dim str As String


str = "select 学号,学期,科目,成绩 from chengji where 学号 =  " & Val(Text1.Text) & " order by 学期"
'MsgBox str
SQL = str
Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\data.MDe;Persist Security Info=False"
Adodc2.CommandType = adCmdText
Adodc2.RecordSource = SQL
tablename = "orders"
Adodc2.Refresh
Set DataGrid1.DataSource = Adodc2
DataGrid1.Refresh
End Sub

Private Sub xiugai_Click()
Form1.Show 1
End Sub

Private Sub xiugai1_Click()
Form6.Show 1
End Sub

⌨️ 快捷键说明

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