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

📄 dlglogin.frm

📁 成绩统计分析系统,可统计并分析学生的成绩。
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Dlglogin 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "系统初始化"
   ClientHeight    =   1500
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3810
   Icon            =   "Dlglogin.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1500
   ScaleWidth      =   3810
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "<<<"
      Height          =   255
      Left            =   2520
      TabIndex        =   4
      ToolTipText     =   "统计信息初始化设置"
      Top             =   120
      Width           =   735
   End
   Begin VB.TextBox TxtFile 
      Height          =   270
      Left            =   120
      TabIndex        =   2
      Text            =   "Text1"
      Top             =   480
      Width           =   3375
   End
   Begin MSComDlg.CommonDialog Cdlg 
      Left            =   1560
      Top             =   960
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton CmdExit 
      Caption         =   "放弃使用"
      Height          =   375
      Left            =   2280
      TabIndex        =   1
      Top             =   960
      Width           =   975
   End
   Begin VB.CommandButton CmdStart 
      Caption         =   "初始化"
      Enabled         =   0   'False
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   960
      Width           =   855
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "连接数据库:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   240
      Left            =   240
      TabIndex        =   3
      Top             =   120
      Width           =   1530
   End
   Begin VB.Menu PopMenu1 
      Caption         =   "Pop"
      Visible         =   0   'False
      Begin VB.Menu MnuXk 
         Caption         =   "添加统计学科"
      End
      Begin VB.Menu MnuDB 
         Caption         =   "打开成绩数据库"
      End
   End
End
Attribute VB_Name = "Dlglogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdExit_Click()
    StartGO = False
    Unload Me
End Sub

Private Sub CmdStart_Click()
    If TxtFile.Text = "" Then
        Exit Sub
    Else
        On Error GoTo ErrLine
        '数据库测试语句
        Con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & TxtFile.Text & ";Mode=ReadWrite;Persist Security Info=True;Jet OLEDB"
        Con.Open
        Dim RsTmp As ADODB.Recordset
        Set RsTmp = New ADODB.Recordset
        RsTmp.Open "select ksh,bj,xh,xm" & " from 成绩表", Con, adOpenStatic, adLockPessimistic, adCmdText
        RsTmp.Close
        RsTmp.Open "select 班级,在籍数,学科,卷面总分,及格数,及格率,优秀数,优秀率,总分,均分,[442],参考数 from 考核表", Con, adOpenStatic, adLockPessimistic, adCmdText
        RsTmp.Close
        RsTmp.Open "select BJ" & " from 分工表", Con, adOpenStatic, adLockPessimistic, adCmdText
        RsTmp.Close
        StartGO = True
        Unload Me
    End If
    
    Exit Sub
ErrLine:
    MsgBox "选择的数据库不符合本系统要求!", 16, "请重新选择"
    
End Sub

Private Sub Command1_Click()
    PopupMenu PopMenu1, , 3200, 355
End Sub

Private Sub Form_Load()
    TxtFile.Text = App.Path + "\DBase\SdMis.mdb"
End Sub

Private Sub MnuDB_Click()
    Cdlg.DialogTitle = "打开成绩库:"
    Cdlg.Filter = "成绩库文件|*.Mdb"
    Cdlg.ShowOpen
    TxtFile.Text = Cdlg.FileName
End Sub

Private Sub MnuXk_Click()
    FrmXK.Show vbModal
End Sub

⌨️ 快捷键说明

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