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

📄 chzhchj.frm

📁 本系统以记录学生信息
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form chzhcht 
   BackColor       =   &H00800000&
   Caption         =   "计算机成绩查询"
   ClientHeight    =   2310
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3675
   LinkTopic       =   "Form1"
   ScaleHeight     =   2310
   ScaleWidth      =   3675
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command9 
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   14
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command8 
      Caption         =   "下一个"
      Height          =   375
      Left            =   1440
      TabIndex        =   13
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command7 
      Caption         =   "查找"
      Height          =   375
      Left            =   360
      TabIndex        =   12
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command6 
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   11
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command5 
      Caption         =   "下一个"
      Height          =   375
      Left            =   1440
      TabIndex        =   10
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command4 
      Caption         =   "查找"
      Height          =   375
      Left            =   360
      TabIndex        =   9
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "下一个"
      Height          =   375
      Left            =   1440
      TabIndex        =   8
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   375
      Left            =   2520
      TabIndex        =   5
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查 找"
      Height          =   375
      Left            =   360
      TabIndex        =   4
      Top             =   1800
      Width           =   855
   End
   Begin VB.OptionButton Option2 
      BackColor       =   &H00800000&
      Caption         =   "按姓名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFC0C0&
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   1200
      Width           =   1335
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00800000&
      Caption         =   "按学号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFC0C0&
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   360
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1680
      TabIndex        =   1
      Top             =   480
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   1680
      TabIndex        =   0
      Top             =   1320
      Width           =   1695
   End
   Begin VB.Label Label1 
      BackColor       =   &H00800000&
      Caption         =   "请输入学号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFC0C0&
      Height          =   255
      Left            =   1680
      TabIndex        =   7
      Top             =   240
      Width           =   1575
   End
   Begin VB.Label Label2 
      BackColor       =   &H00800000&
      Caption         =   "请输入姓名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFC0C0&
      Height          =   255
      Left            =   1680
      TabIndex        =   6
      Top             =   1080
      Width           =   1575
   End
End
Attribute VB_Name = "chzhcht"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim FindName As String
Dim FindXuehao As String
Dim Criteria As String
Dim Currentbookmark As String
If Option2.Value = True Then
    FindName = chzhcht.Text2.Text
    Currentbookmark = jsjchj.Data1.Recordset.Bookmark
    Criteria = "姓名 = " & "'" & FindName & "'"
    jsjchj.Data1.Recordset.FindNext (Criteria)
    jsjchj.Show
    chzhcht.Hide
      If chzhcht.Text2.Text = "" Then
          MsgBox "没有输入任何信息!", vbOKOnly + vbExclamation, "提示"
          chzhcht.Show
      ElseIf jsjchj.Data1.Recordset.NoMatch Then
          jsjchj.Data1.Recordset.Bookmark = Currentbookmark
          MsgBox "没有满足条件的纪录!", vbOKOnly, "查找结果"
          chzhcht.Text1.Text = ""
          chzhcht.Text2.Text = ""
          chzhcht.Show
      End If
ElseIf Option1.Value = True Then
    FindXuehao = chzhcht.Text1.Text
    Currentbookmark = jsjchj.Data1.Recordset.Bookmark
    Criteria = "学号 = '" & FindXuehao & "'"
    jsjchj.Data1.Recordset.FindFirst (Criteria)
    jsjchj.Show
    chzhcht.Hide
      If chzhcht.Text1.Text = "" Then
          MsgBox "没有输入任何信息!", vbOKOnly + vbExclamation, "提示"
          chzhcht.Show
      ElseIf jsjchj.Data1.Recordset.NoMatch Then
          jsjchj.Data1.Recordset.Bookmark = Currentbookmark
          MsgBox "没有满足条件的纪录!", vbOKOnly, "查找结果"
          chzhcht.Text1.Text = ""
chzhcht.Text2.Text = ""
          chzhcht.Show
      End If
ElseIf Option1.Value = False And Option2.Value = False Then
    MsgBox "没有输入任何信息!", vbOKOnly + vbExclamation, "提示"
End If
End Sub

Private Sub Command2_Click()
jsjchj.Show
Unload Me
End Sub
Private Sub Command3_Click()
Dim FindName As String

⌨️ 快捷键说明

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