毕业论文——学生信息管理系统
If Check2.Value = 1 And Not IsNull(Text2) Then SQLadd = SQLadd + \专业='\End If
If Check3.Value = 1 And IsNumeric(Text3) Then SQLadd = SQLadd + \人数='\End If
If Check4.Value = 1 And Not IsNull(Text4) Then SQLadd = SQLadd + \辅导员='\End If
strSql = SQLoriginal + SQLadd + SQLorde If Dat_Main.rsDat_Class.State = 1 Then Dat_Main.rsDat_Class.Close End If
Dat_Main.rsDat_Class.Open strSql Dat_Class.Show vbModal Text1.Text = \Text2.Text = \Text3.Text = \Text4.Text = \
End Sub
Private Sub Command2_Click() Unload Me
End Sub
Private Sub Form_Load() Text1.Text = \Text2.Text = \Text3.Text = \Text4.Text = \End Sub
Private Sub Text1_Change()
End Sub
Private Sub Text3_Change()
End Sub
档案分析统计(如:界面如图五)
毕业论文——学生信息管理系统
(图五)
代码如下:
Private Sub Command1_Click() Dim SQLoriginal As String Dim SQLadd As String Dim SQLorder As String Dim strSql As String
On Error Resume Next
SQLoriginal = \学生档案 \SQLadd = \学号=学号 AND 姓名=姓名 \SQLorder = \
If Check1.Value = 1 And IsNumeric(Text1) Then SQLadd = SQLadd + \学号='\End If
If Check2.Value = 1 And Not IsNull(Text2) Then SQLadd = SQLadd + \姓名='\End If
If Check3.Value = 1 And Not IsNull(Text3) Then SQLadd = SQLadd + \专业='\End If
If Check4.Value = 1 And IsDate(DTPicker1) Then
SQLadd = SQLadd + \出生年月= # \End If
strSql = SQLoriginal + SQLadd + SQLorde If Dat_Main.rsDat_Strudent.State = 1 Then Dat_Main.rsDat_Strudent.Close End If
Dat_Main.rsDat_Strudent.Open strSql Dat_Strudent.Show vbModal Text1.Text = \Text2.Text = \
毕业论文——学生信息管理系统
Text3.Text = \
End Sub
Private Sub Command2_Click() Unload Me End Sub
Private Sub Form_Load() 'Combo1.AddItem (\男\'Combo1.AddItem (\女\Text1.Text = \Text2.Text = \Text3.Text = \End Sub
Private Sub Text1_Change()
End Sub
课程统计分析(如:界面如图六)
(图六)
代码如下:
Private Sub Command1_Click() Dim SQLoriginal As String Dim SQLadd As String Dim SQLorder As String Dim strSql As String
SQLoriginal = \课程表 \
SQLadd = \专业=专业 AND 课程名称=课程名称 \SQLorder = \
If Check1.Value = 1 And Not IsNull(Text1) Then SQLadd = SQLadd + \专业='\End If
毕业论文——学生信息管理系统
If Check2.Value = 1 And Not IsNull(Combo1) Then SQLadd = SQLadd + \课程性质='\End If
'If Check3.Value = 1 And Not IsNumeric(Text2) Then 'SQLadd = SQLadd + \课时='\'End If
If Check4.Value = 1 And Not IsNull(Text3) Then SQLadd = SQLadd + \课程名称='\End If
strSql = SQLoriginal + SQLadd + SQLorde If Dat_Main.rsDat_Grean.State = 1 Then Dat_Main.rsDat_Grean.Close End If
Dat_Main.rsDat_Grean.Open strSql Dat_Grean.Show vbModal Text1.Text = \Combo1.Text = \'Text2.Text = \
Text3.Text = \End Sub
Private Sub Command2_Click() Unload Me End Sub
Private Sub Form_Load() Text1.Text = \'Text2.Text = \Text3.Text = \
Combo1.Text = \
Combo1.AddItem (\必修\Combo1.AddItem (\选修\Combo1.AddItem (\自开\End Sub
Private Sub Text3_Change()
End Sub
成绩统计分析(如:界面如图七)