优秀的毕业设计论文网
计算机 JAVA 电子信息 单片机 机械机电 模具 土木工程 建筑结构 论文
热门搜索词:网络 ASP.NET 汽车 电气 数控 PLC

学生管理系统1(vb+sql)设计与实现

以下是资料介绍,如需要完整的请充值下载.
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
  
资料介绍:

32登陆系统

[版权所有:http://think58.com]

这个模块主要有确定跟取消组成。确定按纽的主要功能是检查用户名和用户密码是否正确。以及确定权限。取消按纽则是退出该功能。代码如下 think58.com [资料来源:http://www.THINK58.com]

Private Sub Command1_Click() 本文来自think58

[资料来源:www.THINK58.com]

Dim mrc As ADODB.Recordset think58好,好think58

[资料来源:www.THINK58.com]

txtsql = "select username from userinfo where username='" & Trim(Text1.Text) & "'"

think58好,好think58

[资料来源:http://www.THINK58.com]

[版权所有:http://think58.com]

Set mrc = ExecuteSQL(txtsql) think58好,好think58

[资料来源:www.THINK58.com]

If mrc.EOF = True Then 内容来自think58 [版权所有:http://think58.com]

MsgBox " 用户名错误!", vbExclamation + vbOKOnly, "警告" 内容来自think58 [来源:http://think58.com]

Text1.SetFocus 内容来自think58 [来源:http://www.think58.com]

Text1.SelStart = 0 think58.com [资料来源:THINK58.com]

Text1.SelLength = Len(Text1.Text) [资料来源:THINK58.com]

Exit Sub think58好,好think58

[资料来源:http://THINK58.com]

End If copyright think58

[资料来源:http://www.THINK58.com]

username = mrc.Fields(0) think58 [资料来源:http://www.THINK58.com]

txtsql = "select username from userinfo where password='" & Trim(Text2.Text) & "'"

copyright think58 [资料来源:http://THINK58.com]

[资料来源:THINK58.com]

Set mrc = ExecuteSQL(txtsql)

think58.com [来源:http://www.think58.com]

[来源:http://think58.com]

If mrc.EOF = True Then think58

[来源:http://think58.com]

MsgBox " 密码错误!", vbExclamation + vbOKOnly, "警告"

[来源:http://think58.com]

Text2.SetFocus think58好,好think58

[版权所有:http://think58.com]

Text2.SelStart = 0

[资料来源:http://THINK58.com]

Text2.SelLength = Len(Text2.Text) [来源:http://www.think58.com]

Exit Sub 内容来自think58

[资料来源:THINK58.com]

End If think58.com [资料来源:www.THINK58.com]

[版权所有:http://think58.com]

MDIForm1.Show think58好,好think58 [资料来源:http://THINK58.com]

Unload Me

本文来自think58

[资料来源:http://www.THINK58.com]

[资料来源:http://think58.com]

End Sub think58好,好think58 [资料来源:http://think58.com]

内容来自think58 [资料来源:www.THINK58.com]

Private Sub Command2_Click()

[来源:http://www.think58.com]

Unload Me think58.com [资料来源:www.THINK58.com]

End Sub 内容来自think58

[资料来源:http://THINK58.com]

think58.com

[来源:http://www.think58.com]

Private Sub Text1_KeyPress(KeyAscii As Integer) 内容来自think58 [资料来源:http://THINK58.com]

If KeyAscii = 13 Then

[来源:http://think58.com]

Text2.SetFocus 内容来自think58 [来源:http://www.think58.com]

End If

[版权所有:http://think58.com]

End Sub think58 [来源:http://think58.com]

内容来自think58

[资料来源:http://THINK58.com]

Private Sub Text2_KeyPress(KeyAscii As Integer)

copyright think58

[来源:http://think58.com]

[资料来源:THINK58.com]

If KeyAscii = 13 Then

[资料来源:www.THINK58.com]

Command1.SetFocus 内容来自think58 [资料来源:http://www.THINK58.com]

End If think58 [版权所有:http://think58.com]

End Sub

[版权所有:http://think58.com]

33系统管理 本文来自think58

[来源:http://www.think58.com]

这个模块的功能主要是添加用户。并且设置权限。代码如下 [资料来源:http://www.THINK58.com]

think58好,好think58 [资料来源:http://THINK58.com]

Private Sub Command1_Click() 本文来自think58 [来源:http://www.think58.com]

If Trim(Text1(0).Text) = "" Then

本文来自think58 [资料来源:http://think58.com]

[资料来源:http://THINK58.com]

MsgBox "用户名不能为空!", vbExclamation + vbOKOnly, "警告" 内容来自think58

[资料来源:http://www.THINK58.com]

Text1(0).SetFocus

本文来自think58 [来源:http://think58.com]

[来源:http://think58.com]

Exit Sub

[来源:http://think58.com]

End If

本文来自think58

[资料来源:http://think58.com]

[来源:http://think58.com]

If Trim(Text1(1).Text) = "" Then

[资料来源:THINK58.com]

MsgBox "密码不能为空!", vbExclamation + vbOKOnly, "警告" copyright think58 [资料来源:http://www.THINK58.com]

Text1(1).SetFocus think58.com

[来源:http://www.think58.com]

Exit Sub

内容来自think58

[资料来源:www.THINK58.com]

[版权所有:http://think58.com]

End If think58 [来源:http://www.think58.com]

If Trim(Text1(2).Text) = "" Then 内容来自think58

[资料来源:http://THINK58.com]

MsgBox "确认密码不能为空!", vbExclamation + vbOKOnly, "警告" 内容来自think58 [来源:http://think58.com]

Text1(2).SetFocus

copyright think58 [资料来源:http://THINK58.com]

[资料来源:http://THINK58.com]

Exit Sub

think58好,好think58 [资料来源:http://THINK58.com]

[版权所有:http://think58.com]

End If [来源:http://www.think58.com]

If Trim(Text1(1).Text) <> Trim(Text1(2).Text) Then

[资料来源:http://www.THINK58.com]

MsgBox "确认密码不正确!", vbExclamation + vbOKOnly, "警告" think58.com [版权所有:http://think58.com]

Text1(2).SetFocus

[资料来源:http://www.THINK58.com]

Exit Sub

copyright think58 [资料来源:http://www.THINK58.com]

[来源:http://think58.com]

End If [版权所有:http://think58.com]

Dim aa As Integer think58.com

[资料来源:www.THINK58.com]

aa = 0 内容来自think58 [资料来源:http://think58.com]

If Option1(2).Value = True Then think58

[资料来源:THINK58.com]

For i = 0 To 3 内容来自think58 [资料来源:http://www.THINK58.com]

If Check1(i).Value = 1 Then

think58好,好think58 [资料来源:http://www.THINK58.com]

[资料来源:THINK58.com]

aa = 1

内容来自think58 [资料来源:THINK58.com]

[资料来源:http://think58.com]

Exit For think58

[资料来源:http://www.THINK58.com]

End If 内容来自think58 [资料来源:http://think58.com]

Next i

think58好,好think58 [资料来源:www.THINK58.com]

[资料来源:http://think58.com]

If aa = 0 Then

copyright think58 [版权所有:http://think58.com]

[资料来源:http://think58.com]

MsgBox " 普通用户至少要有一项权限!", vbExclamation + vbOKOnly, "警告"

[资料来源:THINK58.com]

Exit Sub

think58.com

[资料来源:THINK58.com]

[资料来源:http://THINK58.com]

End If think58.com [资料来源:http://THINK58.com]

End If

内容来自think58

[资料来源:http://www.THINK58.com]

[资料来源:www.THINK58.com]

think58好,好think58 [资料来源:http://www.THINK58.com]

Dim mrc As ADODB.Recordset 本文来自think58 [资料来源:www.THINK58.com]

txtsql = "select * from userinfo where username='" & Trim(Text1(0).Text) & "'" 内容来自think58

[版权所有:http://think58.com]

Set mrc = ExecuteSQL(txtsql)

内容来自think58 [资料来源:http://think58.com]

[来源:http://www.think58.com]

If mrc.EOF = False Then [资料来源:http://THINK58.com]

MsgBox " 已存在该用户!", vbExclamation + vbOKOnly, "警告" think58好,好think58 [资料来源:www.THINK58.com]

Text1(0).SetFocus 本文来自think58 [来源:http://think58.com]

Text1(0).SelStart = 0 think58.com [来源:http://www.think58.com]

Text1(0).SelLength = Len(Text1(0).Text) think58 [资料来源:http://think58.com]

Exit Sub

[资料来源:THINK58.com]

End If

[来源:http://www.think58.com]

txtsql = "select * from userinfo" [来源:http://www.think58.com]

Set mrc = ExecuteSQL(txtsql)

内容来自think58

[来源:http://think58.com]

[来源:http://think58.com]

mrc.AddNew 内容来自think58 [来源:http://www.think58.com]

mrc.Fields(0) = Trim(Text1(0).Text) 本文来自think58

[资料来源:http://www.THINK58.com]

mrc.Fields(1) = Trim(Text1(1).Text) 本文来自think58 [版权所有:http://think58.com]

For i = 0 To 2 think58好,好think58 [资料来源:http://think58.com]

If Option1(i).Value = True Then

copyright think58 [资料来源:http://www.THINK58.com]

[资料来源:http://THINK58.com]

Select Case i think58.com [来源:http://think58.com]

Case 0 内容来自think58

[版权所有:http://think58.com]

mrc.Fields("本站添加") = "y"

[版权所有:http://think58.com]

Case 1 think58

[资料来源:http://THINK58.com]

mrc.Fields("readonly") = "y"

think58好,好think58

[版权所有:http://think58.com]

[资料来源:http://THINK58.com]

Case 2 [来源:http://think58.com]

For j = 0 To 2 内容来自think58

[来源:http://www.think58.com]

If Check1(j).Value = 1 Then think58好,好think58 [资料来源:http://think58.com]

Select Case j

think58好,好think58 [来源:http://www.think58.com]

[来源:http://think58.com]

Case 0

copyright think58

[资料来源:THINK58.com]

[资料来源:http://THINK58.com]

mrc.Fields("qx1") = "y" copyright think58 [资料来源:THINK58.com]

Case 1 think58

[资料来源:THINK58.com]

mrc.Fields("qx2") = "y" [来源:http://think58.com]

Case 2 think58好,好think58 [资料来源:http://THINK58.com]

mrc.Fields("qx3") = "y"

copyright think58

[资料来源:http://www.THINK58.com]

[资料来源:THINK58.com]

End Select

[版权所有:http://think58.com]

End If

think58.com

[来源:http://www.think58.com]

[来源:http://think58.com]

Next j

think58

[版权所有:http://think58.com]

[资料来源:THINK58.com]

End Select copyright think58 [来源:http://www.think58.com]

[资料来源:http://www.THINK58.com]

本文来自think58 [资料来源:www.THINK58.com]

End If

内容来自think58 [资料来源:http://www.THINK58.com]

[资料来源:THINK58.com]

copyright think58 [来源:http://think58.com]

Next i copyright think58

[资料来源:www.THINK58.com]

mrc.Update think58好,好think58 [资料来源:www.THINK58.com]

MsgBox " 用户添加成功!", vbExclamation + vbOKOnly, "警告" copyright think58 [资料来源:http://www.THINK58.com]

Text1(0).Text = "" think58.com

[来源:http://think58.com]

Text1(1).Text = "" [资料来源:http://THINK58.com]

Text1(2).Text = ""

think58.com

[资料来源:http://think58.com]

[资料来源:http://THINK58.com]

End Sub

[版权所有:http://think58.com]

copyright think58

[版权所有:http://think58.com]

Private Sub Command2_Click() think58 [版权所有:http://think58.com]

Unload Me 内容来自think58 [资料来源:THINK58.com]

End Sub

think58.com

[资料来源:www.THINK58.com]

[资料来源:http://www.THINK58.com]

[来源:http://think58.com]

Private Sub Form_Load() think58.com

[资料来源:www.THINK58.com]

[版权所有:http://think58.com]

Option1(2).Value = True

think58好,好think58 [资料来源:http://THINK58.com]

[资料来源:http://think58.com]

End Sub copyright think58 [资料来源:http://www.THINK58.com]

copyright think58 [资料来源:http://THINK58.com]

Private Sub Form_Resize() copyright think58

[版权所有:http://think58.com]

Text1(0).SetFocus [版权所有:http://think58.com]

End Sub think58.com

[资料来源:http://think58.com]

think58

[来源:http://think58.com]

Private Sub Option1_Click(Index As Integer)

[资料来源:http://think58.com]

If Index <> 2 Then 本文来自think58 [资料来源:http://THINK58.com]

For i = 0 To 2 think58

[资料来源:http://think58.com]

Check1(i).Enabled = False think58 [资料来源:http://think58.com]

Next i

[来源:http://think58.com]

Else 内容来自think58

[资料来源:THINK58.com]

For i = 0 To 2

think58好,好think58 [资料来源:www.THINK58.com]

[资料来源:http://think58.com]

Check1(i).Enabled = True [资料来源:http://www.THINK58.com]

Next i [资料来源:THINK58.com]

End If think58

[版权所有:http://think58.com]

End Sub think58好,好think58

[来源:http://think58.com]

34学生档案管理 copyright think58 [资料来源:THINK58.com]

档案添加窗体的主要功能是录入学生的基本档案。代码如下 [版权所有:http://think58.com]

Dim txtsql1 As String [资料来源:http://THINK58.com]

Private Sub Combo1_Click(Index As Integer) [资料来源:THINK58.com]

Dim mrc As ADODB.Recordset 本文来自think58

[资料来源:http://THINK58.com]

txtsql1 = "select 专业,年制 from class where 班级='" & Trim(Combo1(1).Text) & "'"

[来源:http://think58.com]

Set mrc = ExecuteSQL(txtsql1) think58

[来源:http://www.think58.com]

mrc.Close [来源:http://www.think58.com]

End Sub

内容来自think58

[来源:http://think58.com]

[来源:http://www.think58.com]

think58.com

[资料来源:http://www.THINK58.com]

[来源:http://think58.com]

Private Sub Combo1_KeyPress(Index As Integer, KeyAscii As Integer) copyright think58

[版权所有:http://think58.com]

If KeyAscii = 13 Then 本文来自think58 [资料来源:http://think58.com]

[来源:http://www.think58.com]

SendKeys "{TAB}"

[资料来源:THINK58.com]

End If

think58.com [资料来源:http://think58.com]

[来源:http://www.think58.com]

End Sub 内容来自think58

[来源:http://think58.com]

copyright think58 [资料来源:http://THINK58.com]

Private Sub Command1_Click()

内容来自think58 [来源:http://think58.com]

[资料来源:www.THINK58.com]

For j = 0 To 7 think58.com [资料来源:http://think58.com]

If Text1(j) = "" Then

[版权所有:http://think58.com]

ss = MsgBox(Label1(j).Caption & "不能为空!", vbExclamation + vbOKOnly, "警告")

think58好,好think58 [资料来源:http://think58.com]

[来源:http://think58.com]

Text1(j).SetFocus think58.com

[资料来源:http://www.THINK58.com]

Text1(j).SelStart = 0

think58.com [资料来源:http://THINK58.com]

[版权所有:http://think58.com]

Text1(j).SelLength = Len(Text1(j).Text) think58.com

[来源:http://think58.com]

Exit Sub

[资料来源:www.THINK58.com]

End If think58.com [来源:http://think58.com]

think58 [资料来源:http://think58.com]

[来源:http://www.think58.com]

Next think58.com [来源:http://www.think58.com]

think58.com [来源:http://www.think58.com]

Dim mrc As ADODB.Recordset

[版权所有:http://think58.com]

copyright think58

[资料来源:http://think58.com]

txtsql1 = "select * from xj where 学号='" & Trim(Text1(0).Text) & "'"

[资料来源:http://think58.com]

Set mrc = ExecuteSQL(txtsql1)

内容来自think58 [来源:http://www.think58.com]

[资料来源:http://THINK58.com]

If modi = False Then 本文来自think58 [资料来源:THINK58.com]

If mrc.EOF = False Then

think58 [资料来源:www.THINK58.com]

[来源:http://www.think58.com]

sss = MsgBox("已经存在该学号的记录,学号不能重复!", vbExclamation + vbOKOnly, "警告") think58.com

[资料来源:http://www.THINK58.com]

Text1(0).SetFocus think58 [资料来源:THINK58.com]

Text1(0).SelStart = 0 think58.com

[资料来源:http://www.THINK58.com]

Text1(0).SelLength = Len(Text1(0).Text) think58.com

[来源:http://www.think58.com]

mrc.Close think58 [资料来源:http://THINK58.com]

Exit Sub [资料来源:http://THINK58.com]

End If 内容来自think58

[资料来源:http://THINK58.com]

End If 本文来自think58 [版权所有:http://think58.com]

[资料来源:THINK58.com]

If Not IsDate(Text1(2).Text) Then '判断是否日期格式 本文来自think58

[资料来源:http://THINK58.com]

ssss = MsgBox("应输入日期 mm-dd-yy", vbInformation + vbOKOnly, "警告")

[来源:http://www.think58.com]

Text1(2).SetFocus

[资料来源:THINK58.com]

Text1(2).SelStart = 0 think58.com [资料来源:THINK58.com]

Text1(2).SelLength = Len(Text1(2).Text)

本文来自think58

[资料来源:http://www.THINK58.com]

[资料来源:http://www.THINK58.com]

Exit Sub

think58 [来源:http://think58.com]

[来源:http://think58.com]

End If think58.com [资料来源:www.THINK58.com]

If Not IsDate(Text1(6).Text) Then

[资料来源:http://THINK58.com]

ssss = MsgBox("应输入日期 mm-dd-yy", vbInformation + vbOKOnly, "警告") [资料来源:THINK58.com]

Text1(6).SetFocus

[资料来源:http://www.THINK58.com]

Text1(6).SelStart = 0

本文来自think58 [来源:http://think58.com]

[来源:http://www.think58.com]

Text1(6).SelLength = Len(Text1(6).Text)

think58好,好think58 [资料来源:www.THINK58.com]

[来源:http://www.think58.com]

Exit Sub [资料来源:THINK58.com]

End If

think58 [版权所有:http://think58.com]

[资料来源:http://THINK58.com]

think58好,好think58

[资料来源:www.THINK58.com]

If modi = True Then

[来源:http://think58.com]

think58好,好think58 [资料来源:http://www.THINK58.com]

[版权所有:http://think58.com]

txtsql1 = "update xj set 学号='" & Trim(Text1(0).Text) & "',姓名='" & Trim(Text1(1).Text) & "',性别='" & Trim(Combo1(0).Text) & "',班级='" & Trim(Combo1(1).Text) & "',出生年月='" & Trim(Text1(2).Text) & "' ,家庭住址='" & Trim(Text1(3).Text) & "' ,邮政编码='" & Trim(Text1(4).Text) & "' ,联系电话='" & Trim(Text1(5).Text) & "' ,入学时间='" & Trim(Text1(6).Text) & "',备注='" & Trim(Text1(7).Text) & "'where 学号='" & Trim(Form3.MSF1.TextMatrix(Form3.MSF1.Row, 1)) & "'" think58.com

[资料来源:http://THINK58.com]

Set mrc = ExecuteSQL(txtsql1) think58.com

[资料来源:http://THINK58.com]

txtsql1 = "update cj set 学号='" & Trim(Text1(0).Text) & "' where 学号='" & Trim(Form3.MSF1.TextMatrix(Form3.MSF1.Row, 1)) & "'" [资料来源:http://www.THINK58.com]

Set mrc = ExecuteSQL(txtsql1) [资料来源:THINK58.com]

txtsql1 = "update jf set 学号='" & Trim(Text1(0).Text) & "' where 学号='" & Trim(Form3.MSF1.TextMatrix(Form3.MSF1.Row, 1)) & "'" 'Set mrc = ExecuteSQL(txtsql1) [资料来源:http://think58.com]

Unload Me copyright think58 [来源:http://think58.com]

Exit Sub 内容来自think58 [资料来源:http://THINK58.com]

End If think58.com

[资料来源:http://think58.com]

copyright think58

[资料来源:www.THINK58.com]

[来源:http://think58.com]

txtsql1 = "select * from xj "

[来源:http://www.think58.com]

think58好,好think58

[资料来源:http://www.THINK58.com]

[资料来源:THINK58.com]

Set mrc = ExecuteSQL(txtsql1) [资料来源:THINK58.com]

think58 [资料来源:http://think58.com]

mrc.AddNew

think58好,好think58 [资料来源:http://www.THINK58.com]

[资料来源:http://www.THINK58.com]

copyright think58 [资料来源:www.THINK58.com]

For i = 4 To 9 copyright think58

[来源:http://www.think58.com]

[资料来源:www.THINK58.com]

mrc.Fields(i) = Text1(i - 2).Text copyright think58 [来源:http://think58.com]

Next i think58好,好think58

[资料来源:http://www.THINK58.com]

mrc.Fields(0) = Trim(Text1(0).Text) 本文来自think58 [资料来源:http://www.THINK58.com]

mrc.Fields(1) = Trim(Text1(1).Text) 内容来自think58 [资料来源:www.THINK58.com]

think58.com [来源:http://www.think58.com]

mrc.Fields(2) = Trim(Combo1(0).Text) copyright think58

[资料来源:http://www.THINK58.com]

mrc.Fields(3) = Trim(Combo1(1).Text)

本文来自think58 [资料来源:http://THINK58.com]

[版权所有:http://think58.com]

mrc.Update [版权所有:http://think58.com]

Set mrc = Nothing think58 [资料来源:http://think58.com]

内容来自think58 [资料来源:THINK58.com]

For j = 0 To 7 think58好,好think58 [资料来源:http://THINK58.com]

Text1(j) = "" copyright think58

[资料来源:http://think58.com]

Next copyright think58

[来源:http://think58.com]

End Sub

[资料来源:http://think58.com]

[资料来源:http://THINK58.com]

Private Sub Command2_Click()

think58

[资料来源:http://think58.com]

[资料来源:http://www.THINK58.com]

Unload Me [资料来源:www.THINK58.com]

[资料来源:www.THINK58.com]

End Sub

think58好,好think58 [版权所有:http://think58.com]

[资料来源:http://think58.com]

[来源:http://think58.com]

Private Sub Form_Activate() 本文来自think58 [来源:http://www.think58.com]

Text1(0).SetFocus

本文来自think58 [资料来源:THINK58.com]

[资料来源:http://think58.com]

Form1.load1