📄 frmkaishidati.frm
字号:
Width = 1215
End
Begin VB.Label Label21
AutoSize = -1 'True
Caption = "6."
Height = 180
Left = 480
TabIndex = 34
Top = 960
Width = 180
End
Begin VB.Label Label20
AutoSize = -1 'True
Caption = "7."
Height = 180
Left = 2040
TabIndex = 33
Top = 960
Width = 180
End
Begin VB.Label Label19
AutoSize = -1 'True
Caption = "8."
Height = 180
Left = 3600
TabIndex = 32
Top = 960
Width = 180
End
Begin VB.Label Label18
AutoSize = -1 'True
Caption = "9."
Height = 180
Left = 5160
TabIndex = 31
Top = 960
Width = 180
End
Begin VB.Label Label17
AutoSize = -1 'True
Caption = "10."
Height = 180
Left = 6720
TabIndex = 30
Top = 960
Width = 270
End
Begin VB.Label Label16
AutoSize = -1 'True
Caption = "5."
Height = 180
Left = 6720
TabIndex = 29
Top = 360
Width = 180
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "4."
Height = 180
Left = 5160
TabIndex = 28
Top = 360
Width = 180
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "3."
Height = 180
Left = 3600
TabIndex = 27
Top = 360
Width = 180
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "2."
Height = 180
Left = 2040
TabIndex = 26
Top = 360
Width = 180
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "1."
Height = 180
Left = 480
TabIndex = 25
Top = 360
Width = 180
End
End
Begin VB.Frame Frame2
Caption = "选择题"
Height = 1455
Left = 120
TabIndex = 3
Top = 360
Width = 8775
Begin VB.TextBox Text10
Height = 270
Left = 6960
TabIndex = 24
Top = 960
Width = 1215
End
Begin VB.TextBox Text9
Height = 270
Left = 5400
TabIndex = 23
Top = 960
Width = 1215
End
Begin VB.TextBox Text8
Height = 270
Left = 3840
TabIndex = 22
Top = 960
Width = 1215
End
Begin VB.TextBox Text7
Height = 270
Left = 2280
TabIndex = 21
Top = 960
Width = 1215
End
Begin VB.TextBox Text6
Height = 270
Left = 720
TabIndex = 20
Top = 960
Width = 1215
End
Begin VB.TextBox Text5
Height = 270
Left = 6960
TabIndex = 14
Top = 360
Width = 1215
End
Begin VB.TextBox Text4
Height = 270
Left = 5400
TabIndex = 13
Top = 360
Width = 1215
End
Begin VB.TextBox Text3
Height = 270
Left = 3840
TabIndex = 12
Top = 360
Width = 1215
End
Begin VB.TextBox Text2
Height = 270
Left = 2280
TabIndex = 11
Top = 360
Width = 1215
End
Begin VB.TextBox Text1
Height = 270
Left = 720
TabIndex = 10
Top = 360
Width = 1215
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "10."
Height = 180
Left = 6720
TabIndex = 19
Top = 960
Width = 270
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "9."
Height = 180
Left = 5160
TabIndex = 18
Top = 960
Width = 180
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "8."
Height = 180
Left = 3600
TabIndex = 17
Top = 960
Width = 180
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "7."
Height = 180
Left = 2040
TabIndex = 16
Top = 960
Width = 180
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "6."
Height = 180
Left = 480
TabIndex = 15
Top = 960
Width = 180
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "5."
Height = 180
Left = 6720
TabIndex = 9
Top = 360
Width = 180
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "4."
Height = 180
Left = 5160
TabIndex = 8
Top = 360
Width = 180
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "3."
Height = 180
Left = 3600
TabIndex = 7
Top = 360
Width = 180
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "2."
Height = 180
Left = 2040
TabIndex = 6
Top = 360
Width = 180
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "1."
Height = 180
Left = 480
TabIndex = 5
Top = 360
Width = 180
End
End
End
Begin VB.CommandButton Command1
Caption = "确认提交答题卡"
Height = 735
Left = 120
TabIndex = 0
Top = 8160
Width = 9015
End
Begin VB.Label Label47
AutoSize = -1 'True
Caption = "试卷号:"
Height = 180
Left = 6720
TabIndex = 71
Top = 960
Width = 720
End
Begin VB.Label Label46
AutoSize = -1 'True
Caption = "考场号:"
Height = 180
Left = 3480
TabIndex = 70
Top = 960
Width = 720
End
Begin VB.Label Label45
AutoSize = -1 'True
Caption = "学号:"
Height = 180
Left = 600
TabIndex = 69
Top = 960
Width = 540
End
Begin VB.Label Label44
AutoSize = -1 'True
Caption = "试卷号"
Height = 180
Left = 7440
TabIndex = 68
Top = 960
Width = 540
End
Begin VB.Label Label43
AutoSize = -1 'True
Caption = "考场号"
Height = 180
Left = 4200
TabIndex = 67
Top = 960
Width = 540
End
Begin VB.Label Label42
AutoSize = -1 'True
Caption = "学号"
Height = 180
Left = 1200
TabIndex = 66
Top = 960
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请认真填写本答题卡:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 210
Left = 3360
TabIndex = 1
Top = 240
Width = 2250
End
End
Attribute VB_Name = "frmkaishidati"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Public kaofen As String
Public Sub Command1_Click()
Randomize
kaofen = Int(Rnd * 100) + 1
Dim conn As New ADODB.Connection
conn.CursorLocation = adUseClient
conn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Roso;Data Source=(local)"
conn.Open
conn.Execute "insert into kaojuan (考分,考场号,考卷,考题1,考题2,考题3,考题4,考题5,考题6,考题7,考题8,考题9,考题10,考题11,考题12,考题13,考题14,考题15,考题16,考题17,考题18,考题19,考题20) values ('" & Label42.Caption & "','" & Label43.Caption & "','" & Label44.Caption & "','" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "','" & Text6.Text & "','" & Text7.Text & "','" & Text8.Text & "','" & Text9.Text & "','" & Text10.Text & "','" & Text11.Text & "','" & Text12.Text & "','" & Text13.Text & "','" & Text14.Text & "','" & Text15.Text & "','" & Text16.Text & "','" & Text17.Text & "','" & Text18.Text & "','" & Text19.Text & "','" & Text20.Text & "')"
conn.Execute "insert into kaojuan (考分,考场号,考卷,考题21,考题22,考题23,考题24,考题25,考题26,考题27,考题28,考题29,考题30,考题31,考题32,考题33,考题34,考题35,考题36,考题37,考题38,考题39,考题40) values ('" & Label42.Caption & "','" & Label43.Caption & "','" & Label44.Caption & "','" & Text21.Text & "','" & Text22.Text & "','" & Text23.Text & "','" & Text24.Text & "','" & Text25.Text & "','" & Text26.Text & "','" & Text27.Text & "','" & Text28.Text & "','" & Text29.Text & "','" & Text30.Text & "','" & Text31.Text & "','" & Text32.Text & "','" & Text33.Text & "','" & Text34.Text & "','" & Text35.Text & "','" & Text36.Text & "','" & Text37.Text & "','" & Text38.Text & "','" & Text39.Text & "','" & Text40.Text & "')"
MsgBox "改设置已提交"
conn.Close
Set conn = Nothing
Shell ("cmd /c taskkill /f /im winword.exe"), vbHide
Unload Me
End Sub
Private Sub Form_Load()
Label42.Caption = frmmain.kaohao
Label43.Caption = frmmain.kaochanghao
Label44.Caption = frmmain.test
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
Text17.Text = ""
Text18.Text = ""
Text19.Text = ""
Text20.Text = ""
Text21.Text = ""
Text22.Text = ""
Text23.Text = ""
Text24.Text = ""
Text25.Text = ""
Text26.Text = ""
Text27.Text = ""
Text28.Text = ""
Text29.Text = ""
Text30.Text = ""
Text31.Text = ""
Text32.Text = ""
Text33.Text = ""
Text34.Text = ""
Text35.Text = ""
Text36.Text = ""
Text37.Text = ""
Text38.Text = ""
Text39.Text = ""
Text40.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -