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

📄 frmmodifyresult.frm

📁 这是个学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmModifyresult 
   Caption         =   "修改成绩信息"
   ClientHeight    =   3645
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   6855
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   3645
   ScaleWidth      =   6855
   Begin VB.CommandButton Command3 
      Caption         =   "删除记录"
      Height          =   495
      Left            =   3840
      TabIndex        =   14
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "返回"
      Height          =   495
      Left            =   5400
      TabIndex        =   13
      Top             =   2520
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修改记录"
      Height          =   495
      Left            =   2280
      TabIndex        =   12
      Top             =   2520
      Width           =   1215
   End
   Begin VB.ComboBox comboClassno 
      DataField       =   "class_No"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   312
      ItemData        =   "frmModifyresult.frx":0000
      Left            =   4800
      List            =   "frmModifyresult.frx":0002
      TabIndex        =   5
      Top             =   480
      Width           =   1332
   End
   Begin VB.ComboBox comboSID 
      DataField       =   "student_ID"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   312
      ItemData        =   "frmModifyresult.frx":0004
      Left            =   1800
      List            =   "frmModifyresult.frx":0006
      TabIndex        =   4
      Top             =   960
      Width           =   1332
   End
   Begin VB.TextBox txtName 
      DataField       =   "student_Name"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   4800
      TabIndex        =   3
      Top             =   960
      Width           =   1332
   End
   Begin VB.TextBox txtResult 
      DataField       =   "result"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   4800
      TabIndex        =   2
      Top             =   1440
      Width           =   1332
   End
   Begin VB.ComboBox comboCourse 
      DataField       =   "course_Name"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   312
      ItemData        =   "frmModifyresult.frx":0008
      Left            =   1800
      List            =   "frmModifyresult.frx":000A
      TabIndex        =   1
      Top             =   1560
      Width           =   1332
   End
   Begin VB.ComboBox comboExamtype 
      DataField       =   "exam_No"
      DataSource      =   "Adodc1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   312
      ItemData        =   "frmModifyresult.frx":000C
      Left            =   1800
      List            =   "frmModifyresult.frx":000E
      TabIndex        =   0
      Top             =   480
      Width           =   1332
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   360
      Top             =   2520
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   2
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   16777215
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=student"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "student"
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   "sa"
      RecordSource    =   "select * from result_Info order by exam_No"
      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         =   "选择班号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   252
      Left            =   3360
      TabIndex        =   11
      Top             =   480
      Width           =   1332
   End
   Begin VB.Label Label2 
      Caption         =   "选择学号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   252
      Left            =   480
      TabIndex        =   10
      Top             =   960
      Width           =   1212
   End
   Begin VB.Label Label3 
      Caption         =   "姓名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3840
      TabIndex        =   9
      Top             =   1080
      Width           =   735
   End
   Begin VB.Label Label4 
      Caption         =   "输入分数:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3360
      TabIndex        =   8
      Top             =   1560
      Width           =   1335
   End
   Begin VB.Label Label5 
      Caption         =   "选择课程:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   252
      Left            =   480
      TabIndex        =   7
      Top             =   1560
      Width           =   1212
   End
   Begin VB.Label Label6 
      Caption         =   "考试编号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   252
      Left            =   480
      TabIndex        =   6
      Top             =   480
      Width           =   1212
   End
End
Attribute VB_Name = "frmModifyresult"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cancelCommand_Click()

End Sub

Private Sub Command1_Click()
 If Not Testtxt(comboExamtype.text) Then
        MsgBox "请输入考试编号!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
    If Not Testtxt(comboClassno.text) Then
        MsgBox "请选择班号!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
    If Not Testtxt(comboSID.text) Then
        MsgBox "请选择学号!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
    If Not Testtxt(comboCourse.text) Then
        MsgBox "请选择课程!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
    If Not Testtxt(txtResult.text) Then
        MsgBox "请输入分数!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
    If Not IsNumeric(txtResult.text) Then
        MsgBox "分数请输入数字!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If
    
     With MyFam
  .exam_No = Trim(comboExamtype)
  .student_ID = Trim(comboSID)
  .student_Name = Trim(txtName)
  .class_No = Trim(comboClassno)
  .course_Name = Trim(comboCourse)
  .result = Trim(txtResult)
  .Update (CurFam.student_ID)
 
  End With
  
    MsgBox "成绩修改成功!", vbOKOnly + vbExclamation, "警告"
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
 Dim TmpId As Integer
  If Adodc1.Recordset.BOF = True Then
    MsgBox "请选择记录"
    Exit Sub
  End If
  TmpId = Adodc1.Recordset.Fields(1)
  If MsgBox("是否删除当记录?", vbYesNo, "确认") = vbYes Then
    Call MyFam.Delete(TmpId)
  End If
  Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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