【VB开源代码栏目提醒】:网学会员为需要VB开源代码的朋友们搜集整理了exam_entrance.frm相关资料,希望对各位网友有所帮助!
VERSION 5.00
Begin VB.Form exam_entrance
Caption = "考试报名"
ClientHeight = 6480
ClientLeft = 60
ClientTop = 345
ClientWidth = 9660
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 6480
ScaleWidth = 9660
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text10
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 24
Top = 4080
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "取消"
Height = 615
Left = 5520
TabIndex = 23
Top = 5520
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "报名"
Height = 615
Left = 2520
TabIndex = 22
Top = 5520
Width = 1215
End
Begin VB.TextBox Text9
Enabled = 0 'False
Height = 375
Left = 6120
TabIndex = 19
Top = 4080
Width = 2055
End
Begin VB.TextBox Text8
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 18
Top = 4680
Width = 6375
End
Begin VB.ComboBox Combo1
Height = 330
Left = 2880
Style = 2 'Dropdown List
TabIndex = 16
Top = 3600
Width = 4575
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 375
Left = 6360
TabIndex = 15
Top = 1080
Width = 1095
End
Begin VB.TextBox Text7
Height = 375
Left = 2880
TabIndex = 0
Top = 360
Width = 2295
End
Begin VB.TextBox Text2
Enabled = 0 'False
Height = 375
Left = 6360
TabIndex = 6
Top = 1800
Width = 1095
End
Begin VB.TextBox Text3
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 5
Top = 1200
Width = 1815
End
Begin VB.TextBox Text4
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 4
Top = 1800
Width = 2775
End
Begin VB.TextBox Text5
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 3
Top = 2400
Width = 4815
End
Begin VB.TextBox Text6
Enabled = 0 'False
Height = 375
Left = 1800
TabIndex = 2
Top = 2880
Width = 5775
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 5280
TabIndex = 1
Top = 360
Width = 855
End
Begin VB.Label Label12
Caption = "类别编号:"
Height = 495
Left = 360
TabIndex = 25
Top = 4080
Width = 1335
End
Begin VB.Label Label11
Caption = "考试时间:"
Height = 375
Left = 4680
TabIndex = 21
Top = 4080
Width = 1095
End
Begin VB.Label Label10
Caption = "说明:"
Height = 375
Left = 360
TabIndex = 20
Top = 4680
Width = 1095
End
Begin VB.Label Label9
Caption = "选择考试类别:"
Height = 375
Left = 960
TabIndex = 17
Top = 3600
Width = 1695
End
Begin VB.Label Label1
Caption = "准考证号:"
Height = 375
Left = 1560
TabIndex = 14
Top = 360
Width = 1095
End
Begin VB.Label Label2
Caption = "性别:"
Height = 375
Left = 5040
TabIndex = 13
Top = 1200
Width = 1095
End
Begin VB.Label Label3
Caption = ":"
Height = 375
Left = 360
TabIndex = 12
Top = 1200
Width = 1095
End
Begin VB.Label Label4
Caption = "年龄:"
Height = 375
Left = 5040
TabIndex = 11
Top = 1800
Width = 855
End
Begin VB.Label Label5
Caption = "所属单位:"
Height = 375
Left = 360
TabIndex = 10
Top = 2400
Width = 1095
End
Begin VB.Label Label6
Caption = "身份证号:"
Height = 375
Left = 360
TabIndex = 9
Top = 1800
Width = 1095
End
Begin VB.Label Label7
Caption = "地址:"
Height = 375
Left = 360
TabIndex = 8
Top = 2880
Width = 1095
End
Begin VB.Label Label8
Caption = "照 片"
Height = 375
Left = 8160
TabIndex = 7
Top = 2280
Width = 1215
End
Begin VB.Image Image1
BorderStyle = 1 'Fixed Single
Height = 1815
Left = 7920
Top = 240
Width = 1455
End
End
Attribute VB_Name = "exam_entrance"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\file.mdb;Persist Security Info=False"
sql = "select * from type where tname='" & Combo1.Text & "'"
rs.Open sql, cn, 1, 1
Text10.Text = rs("tno")
Text9.Text = rs("ttime")
Text8.Text = rs("tmemo")
End Sub
Private Sub Command1_Click()
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\file.mdb;Persist Security Info=False"
sql = "select * from info_stu where zkzh='" & Text7.Text & "'"
rs.Open sql, cn, 1, 1
If rs.EOF = True Then
MsgBox "没有找到该考生"
Else
Text3.Text = rs("name")
Text1.Text = rs("gentle")
Text4.Text = rs("sfzh")
Text2.Text = rs("age")
Text5.Text = rs("dept")
Text6.Text = rs("address")
Image1.Stretch = True
Image1.Picture = LoadPicture(rs("photo"))
End If
End Sub
Private Sub Command2_Click()
response = MsgBox("确定要报名吗?", vbOKCancel + 32, "提示")
If response = vbOK Then
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\file.mdb;Persist Security Info=False"
sql = "select * from entrance where zkzh='" & Text7.Text & "' and tno='" & Text10.Text & "'"
rs.Open sql, cn, 3, 2
If rs.EOF <> True Then
MsgBox "该考生已报名,请勿重复报名"
Else
rs.AddNew
rs("zkzh")
上一篇:
exam_arrange.frm
下一篇:
恋沫