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

📄 form5.frm

📁 一个提供自定义题库
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form5 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "高级管理"
   ClientHeight    =   3690
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7020
   ControlBox      =   0   'False
   LinkTopic       =   "Form5"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3690
   ScaleWidth      =   7020
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "密码修改"
      Height          =   375
      Left            =   5520
      TabIndex        =   13
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton Command4 
      Caption         =   "退出"
      Height          =   375
      Left            =   5520
      TabIndex        =   12
      Top             =   2760
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "返回"
      Height          =   375
      Left            =   5520
      TabIndex        =   11
      Top             =   2280
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "学生管理"
      Height          =   375
      Left            =   5520
      TabIndex        =   10
      Top             =   1320
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "题库修改"
      Height          =   375
      Left            =   5520
      TabIndex        =   9
      Top             =   840
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00C0C0C0&
      Caption         =   "成绩查询"
      Height          =   3615
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   6855
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   2400
         TabIndex        =   8
         Top             =   840
         Width           =   1575
      End
      Begin VB.TextBox Text3 
         DataField       =   "cj"
         DataSource      =   "Data1"
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         TabIndex        =   6
         Text            =   "Text3"
         Top             =   2880
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         DataField       =   "xm"
         DataSource      =   "Data1"
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         TabIndex        =   5
         Text            =   "Text2"
         Top             =   2280
         Width           =   1215
      End
      Begin VB.Data Data1 
         Caption         =   "Data1"
         Connect         =   "Access"
         DatabaseName    =   "stk.mdb"
         DefaultCursorType=   0  '缺省游标
         DefaultType     =   2  '使用 ODBC
         Exclusive       =   0   'False
         Height          =   375
         Left            =   2040
         Options         =   0
         ReadOnly        =   -1  'True
         RecordsetType   =   1  'Dynaset
         RecordSource    =   "cj"
         Top             =   3720
         Width           =   2895
      End
      Begin VB.TextBox Text1 
         DataField       =   "xh"
         DataSource      =   "Data1"
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         TabIndex        =   1
         Text            =   "Text1"
         Top             =   1680
         Width           =   1215
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "请输入学号:"
         Height          =   375
         Left            =   840
         TabIndex        =   7
         Top             =   840
         Width           =   1455
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "成绩:"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   2880
         Width           =   855
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "姓名:"
         Height          =   375
         Left            =   240
         TabIndex        =   3
         Top             =   2280
         Width           =   615
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "学号:"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   1680
         Width           =   615
      End
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
frmstk.Show

End Sub

Private Sub Command2_Click()
frmcj.Show

End Sub

Private Sub Command3_Click()
Form2.Show
Me.Hide
End Sub

Private Sub Command4_Click()
End
End Sub


Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.Fields("xh") = Text4.Text
Data1.Recordset.MoveNext
If Data1.Recordset.EOF = True Then
MsgBox ("无此学号!")
Text4.Text = ""
Exit Sub
End If


Loop
End If

End Sub

⌨️ 快捷键说明

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