📄 edde1.frm
字号:
VERSION 5.00
Begin VB.Form edde1
Caption = "输入考生成绩"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Comm2
Caption = "取消"
Height = 375
Left = 2640
TabIndex = 16
Top = 2400
Width = 735
End
Begin VB.CommandButton Comm1
Caption = "确定"
Height = 375
Left = 1440
TabIndex = 15
Top = 2400
Width = 735
End
Begin VB.Frame Frame1
Caption = "考生成绩"
Height = 1815
Left = 360
TabIndex = 0
Top = 360
Width = 3975
Begin VB.TextBox Text1
Height = 270
Index = 6
Left = 840
TabIndex = 14
Top = 1440
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 5
Left = 2520
TabIndex = 13
Top = 1080
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 4
Left = 840
TabIndex = 12
Top = 1080
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 3
Left = 2520
TabIndex = 11
Top = 720
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 2
Left = 840
TabIndex = 10
Top = 720
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 1
Left = 2520
TabIndex = 9
Top = 360
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Index = 0
Left = 840
TabIndex = 8
Top = 360
Width = 975
End
Begin VB.Label Label7
Caption = "总 分"
Height = 255
Left = 240
TabIndex = 7
Top = 1440
Width = 615
End
Begin VB.Label Label6
Caption = "专业课"
Height = 255
Left = 1920
TabIndex = 6
Top = 1080
Width = 615
End
Begin VB.Label Label5
Caption = "政 治"
Height = 255
Left = 240
TabIndex = 5
Top = 1080
Width = 615
End
Begin VB.Label Label4
Caption = "外 语"
Height = 255
Left = 1920
TabIndex = 4
Top = 720
Width = 615
End
Begin VB.Label Label3
Caption = "数 学"
Height = 255
Left = 240
TabIndex = 3
Top = 720
Width = 615
End
Begin VB.Label Label2
Caption = "姓 名"
Height = 255
Left = 1920
TabIndex = 2
Top = 360
Width = 615
End
Begin VB.Label Label1
Caption = "报名号"
Height = 255
Left = 240
TabIndex = 1
Top = 360
Width = 615
End
End
End
Attribute VB_Name = "edde1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load() '给界面中的各文本框置初值
Text1(0).Text = edde.Adodc1.Recordset.Fields("报名号")
Text1(1).Text = edde.Adodc1.Recordset.Fields("姓名")
Text1(2).Text = edde.Adodc1.Recordset.Fields("数学")
Text1(3).Text = edde.Adodc1.Recordset.Fields("外语")
Text1(4).Text = edde.Adodc1.Recordset.Fields("政治")
Text1(5).Text = edde.Adodc1.Recordset.Fields("专业课")
Text1(6).Text = edde.Adodc1.Recordset.Fields("总分")
End Sub
Private Sub comm1_click() '将用户编辑的数据写入记录源中
edde.Adodc1.Recordset.Fields("报名号") = Trim(Text1(0).Text)
edde.Adodc1.Recordset.Fields("数学") = Val(Trim(Text1(2).Text))
edde.Adodc1.Recordset.Fields("外语") = Val(Trim(Text1(3).Text))
edde.Adodc1.Recordset.Fields("政治") = Val(Trim(Text1(4).Text))
edde.Adodc1.Recordset.Fields("专业课") = Val(Trim(Text1(5).Text))
edde.Adodc1.Recordset.Fields("总分") = Val(Trim(Text1(6).Text))
edde.Adodc1.Recordset.Update
Unload Me
End Sub
Private Sub comm2_click() '取消
Unload Me
End Sub
Private Sub text1_keypress(Index As Integer, KeyAscii As Integer)
Call endata(KeyAscii)
End Sub
Private Sub text1_lostfocus(Index As Integer)
Text1(6).Text = Val(Text1(2).Text) + Val(Text1(3).Text) + _
Val(Text1(4).Text) + Val(Text1(5).Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -