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

📄 form9.frm

📁 学籍管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form8 
   Caption         =   "学生学籍管理"
   ClientHeight    =   6990
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7965
   LinkTopic       =   "Form8"
   ScaleHeight     =   6990
   ScaleWidth      =   7965
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdexit 
      Caption         =   "退出"
      Height          =   495
      Left            =   5160
      TabIndex        =   27
      Top             =   6120
      Width           =   1215
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   1440
      Top             =   6120
      Width           =   2895
      _ExtentX        =   5106
      _ExtentY        =   873
      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=Microsoft.Jet.OLEDB.4.0;Data Source=E:\15\学生成绩档案.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\15\学生成绩档案.mdb;Persist Security Info=False"
      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.Frame Frame2 
      Height          =   1215
      Left            =   360
      TabIndex        =   22
      Top             =   4440
      Width           =   6855
      Begin VB.CommandButton cmdfirst 
         Caption         =   "首记录"
         Height          =   615
         Left            =   720
         TabIndex        =   26
         Top             =   360
         Width           =   975
      End
      Begin VB.CommandButton cmdprevious 
         Caption         =   "前记录"
         Height          =   615
         Left            =   2160
         TabIndex        =   25
         Top             =   360
         Width           =   975
      End
      Begin VB.CommandButton cmdnext 
         Caption         =   "后记录"
         Height          =   615
         Left            =   3840
         TabIndex        =   24
         Top             =   360
         Width           =   975
      End
      Begin VB.CommandButton cmdlast 
         Caption         =   "末记录"
         Height          =   615
         Left            =   5040
         TabIndex        =   23
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Height          =   1095
      Left            =   3120
      TabIndex        =   18
      Top             =   3120
      Width           =   4095
      Begin VB.CommandButton cmdadd 
         Caption         =   "添加"
         Height          =   375
         Left            =   480
         TabIndex        =   21
         Top             =   360
         Width           =   855
      End
      Begin VB.CommandButton cmddelete 
         Caption         =   "删除"
         Height          =   375
         Left            =   1680
         TabIndex        =   20
         Top             =   360
         Width           =   855
      End
      Begin VB.CommandButton cmdedit 
         Caption         =   "修改"
         Height          =   375
         Left            =   2760
         TabIndex        =   19
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.TextBox Text9 
      DataField       =   "个人情况"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   840
      TabIndex        =   17
      Top             =   3240
      Width           =   1935
   End
   Begin VB.TextBox Text8 
      DataField       =   "政治面貌"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4320
      TabIndex        =   16
      Top             =   2400
      Width           =   1935
   End
   Begin VB.TextBox Text7 
      DataField       =   "班级"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   840
      TabIndex        =   15
      Top             =   2400
      Width           =   1935
   End
   Begin VB.TextBox Text6 
      DataField       =   "地址"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4320
      TabIndex        =   14
      Top             =   1560
      Width           =   1935
   End
   Begin VB.TextBox Text5 
      DataField       =   "联系方式"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   840
      TabIndex        =   13
      Top             =   1440
      Width           =   1935
   End
   Begin VB.TextBox Text4 
      DataField       =   "地址"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4320
      TabIndex        =   12
      Top             =   840
      Width           =   1935
   End
   Begin VB.TextBox Text3 
      DataField       =   "出生年月"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   840
      TabIndex        =   11
      Top             =   840
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      DataField       =   "姓别"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4320
      TabIndex        =   10
      Top             =   120
      Width           =   1935
   End
   Begin VB.TextBox Text1 
      DataField       =   "姓名"
      BeginProperty DataFormat 
         Type            =   0
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   0
      EndProperty
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   840
      TabIndex        =   9
      Top             =   120
      Width           =   1935
   End
   Begin VB.Label Label9 
      Caption         =   "个人情况:"
      Height          =   495
      Left            =   0
      TabIndex        =   8
      Top             =   3240
      Width           =   1095
   End
   Begin VB.Label Label8 
      Caption         =   "政治面貌:"
      Height          =   375
      Left            =   3480
      TabIndex        =   7
      Top             =   2400
      Width           =   975
   End
   Begin VB.Label Label7 
      Caption         =   "班级:"
      Height          =   375
      Left            =   0
      TabIndex        =   6
      Top             =   2400
      Width           =   1095
   End
   Begin VB.Label Label6 
      Caption         =   "系别:"
      Height          =   495
      Left            =   3480
      TabIndex        =   5
      Top             =   1560
      Width           =   975
   End
   Begin VB.Label Label5 
      Caption         =   "联系方式:"
      Height          =   495
      Left            =   0
      TabIndex        =   4
      Top             =   1440
      Width           =   1095
   End
   Begin VB.Label Label4 
      Caption         =   "地址:"
      Height          =   495
      Left            =   3480
      TabIndex        =   3
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "出生年月:"
      Height          =   495
      Left            =   0
      TabIndex        =   2
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "姓别:"
      Height          =   495
      Left            =   3480
      TabIndex        =   1
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "姓名:"
      Height          =   375
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdfirst_Click()
cmdprevious.Enabled = False
cmdnext.Enabled = True
Adodc1.Recordset.MoveFirst
End Sub

Private Sub cmdlast_Click()
 cmdprevious.Enabled = True
 cmdnext.Enabled = False
Adodc1.Recordset.MoveLast
If Adodc1.Recordset.BOF Then
 Adodc1.Recordset.MoveFirst
End If
End Sub

Private Sub cmdnext_Click()
On Error Resume Next
cmdprevious.Enabled = True
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
Exit Sub
End Sub


Private Sub cmdprevious_Click()
On Error Resume Next
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
Exit Sub
End Sub

Private Sub cmdadd_Click()
On Error Resume Next
 Adodc1.Recordset.AddNew
 Adodc1.Recordset.Update
 Adodc1.Recordset.MoveLast
Me.Cmdedit.Caption = "保存"
Me.cmddelete.Enabled = False
Me.Cmdadd.Enabled = False
Exit Sub
End Sub
Private Sub cmddelete_Click()
On Error Resume Next
 Adodc1.Recordset.Delete
If Not Data1.Recordset.EOF Then
 Adodc1.Recordset.MoveNext
Else
 Adodc1.Recordset.MoveLast
End If
If Me.Cmdedit.Caption = "保存" Then
Me.Cmdedit.Caption = "修改"
Me.cmddelete.Enabled = True
Me.Cmdadd.Enabled = True
Data1.Recordset.Updata
End If
Exit Sub
End Sub
Private Sub cmdedit_Click()
On Error Resume Next
 Adodc1.Recordset.Update
Me.Cmdedit.Caption = "修改"
Me.cmddelete.Enabled = True
Me.Cmdadd.Enabled = True
 Data1.Recordset.Edit
 Data1.Recordset.Update
Exit Sub
End Sub

Private Sub cmdexit_Click()
 Unload Me
 Form5.Show
End Sub


⌨️ 快捷键说明

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