vb和SQL做的学生成绩管理系统-.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《vb和SQL做的学生成绩管理系统-.pdf》由会员分享,可在线阅读,更多相关《vb和SQL做的学生成绩管理系统-.pdf(21页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Form1的代码:Private Sub Command1_Click()Unload Me Form3.Show End Sub Private Sub Command2_Click()Unload Me Form2.Show End Sub Private Sub Command3_Click()If MsgBox(确定退出管理系统?,_ vbQuestion+vbYesNo+vbDefaultButton2,警告!)=vbYes Then End End If End Sub Private Sub Picture1_Click()End Sub Private Sub Timer1_T
2、imer()Command4.Caption=Time$()End Sub Private Sub Form_Load()Timer1.Interval=1000 Timer1.Enabled=True End Sub Form2 的代码:Private Sub Command1_Click()Adodc1.Recordset.MoveFirst Adodc1.Recordset.Find 用户名=&Text1.Text&If Adodc1.Recordset.EOF=True Then Adodc1.Recordset.MoveFirst If(Trim(Text1.Text)=(Trim(
3、Text3.Text)And(Trim(Text2.Text)=(Trim(Text4.Text)Then Adodc1.Enabled=False Form4.Text3.Text=Text1.Text Unload Me Form8.Show Else MsgBox 非法的账号!,vbOKOnly+vbExclamation,请重新输入!Text1.Text=Text2.Text=Text1.SetFocus End If End Sub Private Sub Command2_Click()Text1.Text=Text2.Text=End Sub Private Sub Comman
4、d3_Click()Unload Me Form1.Show End Sub Private Sub Form_Load()Text2.Text=Text1.Text=Text2.PasswordChar=*End Sub Private Sub Picture1_Click()End Sub Form3 的代码:Private Sub Command1_Click()Adodc1.Recordset.MoveFirst Adodc1.Recordset.Find 用户名=&Text1.Text&If Adodc1.Recordset.EOF=True Then Adodc1.Recordse
5、t.MoveFirst If(Trim(Text1.Text)=(Trim(Text3.Text)And(Trim(Text2.Text)=(Trim(Text4.Text)Then Adodc1.Enabled=False Form4.Text1.Text=Text1.Text Form4.Text2.Text=Text4.Text Unload Me Form5.Show Else MsgBox 非法的账号!,vbOKOnly+vbExclamation,请重新输入!Text1.Text=Text2.Text=Text1.SetFocus End If End Sub Private Su
6、b Command2_Click()Option1.Value=False Option2.Value=False Text1.Text=Text2.Text=End Sub Private Sub Command3_Click()Unload Me Form1.Show End Sub Private Sub Form_Load()Text2.Text=Text1.Text=Text2.PasswordChar=*End Sub 无代码Form5 的代码:Private Sub cjcx_Click(Index As Integer)Unload Me Form7.Show End Sub
7、Private Sub Command1_Click()On Error Resume Next If Command1.Caption=修改 Then Command1.Caption=确认 Adodc2.Recordset.Requery Text5.SetFocus Else Command1.Caption=修改 Adodc2.Recordset.Update MsgBox 修改成功 End If End Sub Private Sub Form_Load()Adodc1.CommandType=adCmdUnknown Adodc1.RecordSource=Select*From
8、studentwel Where 用户名=&Form4.Text1.Text&Adodc1.Refresh Text1.Visible=True Text3.Visible=True Timer1.Interval=1000 Timer1.Enabled=True End Sub Private Sub Picture1_Click()End Sub Private Sub tcxt_Click(Index As Integer)Unload Me Form3.Show End Sub Private Sub Timer1_Timer()Text2.Text=Time$()End Sub Pr
9、ivate Sub xgmm_Click()Label5.Visible=True Label7.Visible=True Text4.Visible=True Text5.Visible=True Command1.Visible=True Adodc2.CommandType=adCmdUnknown Adodc2.RecordSource=Select*From studententer Where 用户名=&Form4.Text1.Text&Adodc2.Refresh End Sub Private Sub xxcx_Click(Index As Integer)Unload Me
10、Form6.Show End Sub Form6 的代码:Private Sub Command1_Click()Unload Me Form5.Show End Sub Private Sub Command2_Click()On Error Resume Next If Command2.Caption=修改 Then Text1.SetFocus Command2.Caption=确认 Adodc1.Recordset.Requery MsgBox 信息修改成功 Else Command2.Caption=修改 Adodc1.Recordset.Update End If End Sub
11、 Private Sub Form_Load()Adodc1.CommandType=adCmdUnknown Adodc1.RecordSource=Select*From studentinfor Where 学号=&Form4.Text1.Text&Adodc1.Refresh Text1.Visible=True Text2.Visible=True Text3.Visible=True Text4.Visible=True Text5.Visible=True Text6.Visible=True Text7.Visible=True Text8.Visible=True End S
12、ub Private Sub Picture1_Click()End Sub Private Sub Command1_Click()Unload Me Form5.Show End Sub Private Sub Form_Load()Adodc1.Recordset.MoveFirst Dim a As String a=Form4.Text1.Text Adodc1.Recordset.Find 学号=&a&Text1.Visible=True Text2.Visible=True Text4.Visible=True Text6.Visible=True Dim b As Intege
13、r b=Text2.Text If b=90 Then Text3.Text=优 ElseIf b=80 Then Text3.Text=良 ElseIf b=70 Then Text3.Text=中 ElseIf b=60 Then Text3.Text=及格 Else Text3.Text=不及格 End If Dim c As Integer c=Text4.Text If c=90 Then Text5.Text=优 ElseIf c=80 Then Text5.Text=良 ElseIf c=70 Then Text5.Text=中 ElseIf c=60 Then Text5.Te
14、xt=及格 Else Text5.Text=不及格 End If Dim d As Integer d=Text6.Text If d=90 Then Text7.Text=优 ElseIf d=80 Then Text7.Text=良 ElseIf d=70 Then Text7.Text=中 ElseIf d=60 Then Text7.Text=及格 Else Text7.Text=不及格 End If If Text3.Text=不及格 Then Text2.ForeColor=&HFF&End If If Text5.Text=不及格 Then Text4.ForeColor=&HF
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- vb SQL 学生 成绩管理系统
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内