📄 edbj.frm
字号:
VERSION 5.00
Begin VB.Form edbj
Caption = "输入录取标准"
ClientHeight = 3375
ClientLeft = 60
ClientTop = 345
ClientWidth = 5055
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3375
ScaleWidth = 5055
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Comm2
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 525
Left = 2760
TabIndex = 12
Top = 2640
Width = 795
End
Begin VB.CommandButton Comm1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 525
Left = 1530
TabIndex = 11
Top = 2640
Width = 795
End
Begin VB.Frame Frame1
Caption = "考生标准"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 2115
Left = 300
TabIndex = 0
Top = 270
Width = 4455
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 4
Left = 1050
TabIndex = 10
Top = 1470
Width = 1155
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 3
Left = 3060
TabIndex = 9
Top = 990
Width = 1155
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 2
Left = 1050
TabIndex = 8
Top = 990
Width = 1155
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 1
Left = 3090
TabIndex = 7
Top = 510
Width = 1155
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 0
Left = 1050
TabIndex = 6
Top = 510
Width = 1155
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 = &H00FF0000&
Height = 210
Index = 6
Left = 300
TabIndex = 5
Top = 1530
Width = 585
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 = &H00FF0000&
Height = 210
Index = 5
Left = 2310
TabIndex = 4
Top = 1050
Width = 690
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 = &H00FF0000&
Height = 210
Index = 4
Left = 300
TabIndex = 3
Top = 1050
Width = 585
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 = &H00FF0000&
Height = 210
Index = 3
Left = 2310
TabIndex = 2
Top = 540
Width = 585
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 = &H00FF0000&
Height = 210
Index = 2
Left = 300
TabIndex = 1
Top = 540
Width = 585
End
End
End
Attribute VB_Name = "edbj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs As ADODB.Recordset
Private Sub Comm1_Click()
rs.Fields("数学") = Val(Trim(Text1(0).Text))
rs.Fields("外语") = Val(Trim(Text1(1).Text))
rs.Fields("政治") = Val(Trim(Text1(2).Text))
rs.Fields("专业课") = Val(Trim(Text1(3).Text))
rs.Fields("总分") = Val(Trim(Text1(4).Text))
rs.Update
rs.Close
Unload Me
End Sub
Private Sub Comm2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim sql As String
sql = "select * from bzb"
Set rs = exesql(sql)
If rs.RecordCount = 0 Then
rs.AddNew
Else
Text1(0).Text = rs.Fields("数学")
Text1(1).Text = rs.Fields("外语")
Text1(2).Text = rs.Fields("政治")
Text1(3).Text = rs.Fields("专业课")
Text1(4).Text = rs.Fields("总分")
End If
End Sub
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
Call endata(KeyAscii)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -