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

📄 chengji.frm

📁 主要用于学生的各方面信息的管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   2
      Top             =   5685
      Width           =   8340
      _ExtentX        =   14711
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            Alignment       =   1
            TextSave        =   "2005-1-4"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            Alignment       =   1
            TextSave        =   "8:32"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
            Object.Width           =   7038
            MinWidth        =   7038
            Text            =   "学生管理系统"
            TextSave        =   "学生管理系统"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   2895
      _ExtentX        =   5106
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      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.Label Label1 
      Caption         =   "请选择查询条件"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   495
      Left            =   1920
      TabIndex        =   12
      Top             =   1320
      Width           =   3855
   End
End
Attribute VB_Name = "chengji"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim SQL As String
Private Sub Command1_Click()
Label1.Visible = False
If IIf(Option1 = True, "1", "") = "1" Then

SQL = "select Manage_score.user_id,user_name,sub_name,sub_record,score_score from Manage_user,Manage_score,Manage_subject where Manage_user.user_id=Manage_score.user_id and Manage_subject.sub_id=Manage_score.sub_id and Manage_score.user_id=" & Text1.Text

End If

If IIf(Option2 = True, "1", "") = "1" Then

SQL = "select Manage_score.user_id,user_name,sub_name,sub_record,score_score from Manage_user,Manage_score,Manage_subject where Manage_user.user_id=Manage_score.user_id and Manage_subject.sub_id=Manage_score.sub_id and Manage_user.user_name='" & Text2.Text & "'"

End If

If IIf(Option3 = True, "1", "") = "1" Then

SQL = "select Manage_score.user_id,user_name,sub_name,sub_record,score_score from Manage_user,Manage_score,Manage_subject where Manage_user.user_id=Manage_score.user_id and Manage_subject.sub_id=Manage_score.sub_id and Manage_user.user_major='" & Combo1.Text & "' order by Manage_user.user_id"

End If

If SQL = "" Then
MsgBox ("请输入查询条件")

Else
Adodc1.RecordSource = SQL
Adodc1.Refresh
DataGrid1.Visible = True
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
Printer.Height = 8000: Printer.Width = 8000
 Printer.CurrentX = 1100: Printer.CurrentY = 300
 Printer.FontSize = 12
 Printer.Print "学生成绩 "
 Dim A, B, C, d As Integer
 A = 100: B = 500: C = 4800: d = 400
 Printer.FontSize = 10
 Printer.CurrentX = 100 + A
 Printer.CurrentY = B + 200
 Printer.Print Date & " " & Time & "  NO."; &O1
 B = B + d
 Printer.Line (A, B + 100)-(C, B + 100)
 Printer.CurrentX = 100 + A
 Printer.CurrentY = B + 200
 Printer.Print "姓名:" & zhanghui
 B = B + d
 Printer.CurrentX = 100 + A
 Printer.CurrentY = B + 200
 Printer.Print "成绩:" & 80
 
 Printer.EndDoc
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = cnn()
Adodc2.ConnectionString = cnn() 'class databind
Adodc2.RecordSource = "select distinct major_name from Manage_base"
Adodc2.Refresh
For i = 0 To Adodc2.Recordset.RecordCount - 1
Combo1.AddItem (Adodc2.Recordset.Fields("major_name"))
Adodc2.Recordset.MoveNext
Next i

End Sub

Private Sub Option1_Click()
Text1.Enabled = True
Text1.SetFocus
Text2.Enabled = False
Combo1.Enabled = False
Text2.Text = ""
Combo1.Text = ""
End Sub

Private Sub Option2_Click()
Text2.Enabled = True
Text2.SetFocus
Text1.Enabled = False
Text1.Text = ""
Combo1.Enabled = False
Combo1.Text = ""
End Sub

Private Sub Option3_Click()
Combo1.Enabled = True
Text2.Enabled = False
Text1.Enabled = False
Text2.Text = ""
Text1.Text = ""

End Sub

⌨️ 快捷键说明

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