📄 frmxxkc.frm
字号:
Text = "Combo4"
Top = 510
Width = 2055
End
Begin VB.TextBox Text7
DataField = "课程"
DataSource = "Data1"
Height = 345
Left = 2700
TabIndex = 35
Text = "Text2"
Top = 1230
Width = 2025
End
Begin VB.TextBox Text6
DataField = "学分"
DataSource = "Data1"
Height = 375
Left = 2670
TabIndex = 34
Text = "Text3"
Top = 1860
Width = 2085
End
Begin VB.TextBox Text5
DataField = "学号"
DataSource = "Data1"
Enabled = 0 'False
Height = 330
Left = 4920
TabIndex = 33
Text = "Text4"
Top = 1200
Width = 2055
End
Begin VB.Label Label1
Caption = "学生:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 15
Left = 360
TabIndex = 48
Top = 1620
Width = 765
End
Begin VB.Label Label1
Caption = "班级:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 14
Left = 360
TabIndex = 47
Top = 960
Width = 765
End
Begin VB.Label Label1
Caption = "院系:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 13
Left = 360
TabIndex = 46
Top = 270
Width = 765
End
Begin VB.Label Label1
Caption = "学期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 12
Left = 2670
TabIndex = 45
Top = 240
Width = 765
End
Begin VB.Label Label1
Caption = "课程:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 11
Left = 2670
TabIndex = 44
Top = 960
Width = 765
End
Begin VB.Label Label1
Caption = "学分:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 10
Left = 2670
TabIndex = 43
Top = 1620
Width = 765
End
Begin VB.Label Label1
Caption = "成绩:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 9
Left = 4890
TabIndex = 42
Top = 240
Width = 765
End
Begin VB.Label Label1
Caption = "学号为:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Index = 8
Left = 4920
TabIndex = 41
Top = 960
Width = 765
End
End
Begin ComctlLib.TabStrip TabSp1
Height = 3015
Left = 90
TabIndex = 16
Top = 60
Width = 7905
_ExtentX = 13944
_ExtentY = 5318
_Version = 327682
BeginProperty Tabs {0713E432-850A-101B-AFC0-4210102A8DA7}
NumTabs = 4
BeginProperty Tab1 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "选修课成绩录入"
Key = "XXKC"
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab2 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "双学位课成绩录入"
Key = "SXWKC"
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab3 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "生产实习成绩录入"
Key = "SCSX"
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab4 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "毕业设计成绩录入"
Key = "BYSJ"
Object.Tag = ""
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "FRMXXKC.frx":041E
Height = 3315
Left = 90
OleObjectBlob = "FRMXXKC.frx":042E
TabIndex = 49
Top = 3120
Width = 9345
End
Begin VB.CommandButton Command12
Caption = "退出"
Height = 315
Left = 8220
TabIndex = 32
Top = 2670
Width = 1125
End
Begin VB.CommandButton Command11
Caption = "添加"
Height = 315
Left = 8220
TabIndex = 31
Top = 450
Width = 1125
End
Begin VB.CommandButton Command10
Caption = "删除"
Height = 315
Left = 8220
TabIndex = 30
Top = 750
Width = 1125
End
Begin VB.CommandButton Command9
Caption = "修改"
Height = 315
Left = 8220
TabIndex = 29
Top = 1050
Width = 1125
End
Begin VB.CommandButton Command8
Caption = "保存"
Height = 315
Left = 8220
TabIndex = 28
Top = 1350
Width = 1125
End
Begin VB.CommandButton Command7
Caption = "定位"
Height = 315
Left = 8220
TabIndex = 27
Top = 1650
Width = 1125
End
Begin VB.Frame FRAME2
Height = 2745
Left = 8100
TabIndex = 1
Top = 300
Width = 1365
Begin VB.CommandButton Command2
Caption = "添加"
Height = 315
Left = 120
TabIndex = 4
Top = 150
Width = 1125
End
Begin VB.CommandButton Command16
Caption = "下条"
Height = 675
Left = 960
TabIndex = 53
Top = 1680
Width = 285
End
Begin VB.CommandButton Command15
Caption = "上条"
Height = 675
Left = 680
TabIndex = 52
Top = 1680
Width = 285
End
Begin VB.CommandButton Command14
Caption = "末条"
Height = 675
Left = 400
TabIndex = 51
Top = 1680
Width = 285
End
Begin VB.CommandButton Command13
Caption = "首条"
Height = 675
Left = 120
TabIndex = 50
Top = 1680
Width = 285
End
Begin VB.Data Data1
Appearance = 0 'Flat
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 315
Left = 150
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 1920
Width = 1065
End
Begin VB.CommandButton Command6
Caption = "定位"
Height = 315
Left = 120
TabIndex = 8
Top = 1350
Width = 1125
End
Begin VB.CommandButton Command5
Caption = "保存"
Height = 315
Left = 120
TabIndex = 7
Top = 1050
Width = 1125
End
Begin VB.CommandButton Command4
Caption = "修改"
Height = 315
Left = 120
TabIndex = 6
Top = 750
Width = 1125
End
Begin VB.CommandButton Command3
Caption = "删除"
Height = 315
Left = 120
TabIndex = 5
Top = 450
Width = 1125
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 315
Left = 120
TabIndex = 3
Top = 2370
Width = 1125
End
End
Begin ComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 345
Left = 0
TabIndex = 0
Top = 6480
Width = 9510
_ExtentX = 16775
_ExtentY = 609
SimpleText = ""
_Version = 327682
BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
NumPanels = 3
BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
AutoSize = 2
Key = ""
Object.Tag = ""
EndProperty
BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7}
AutoSize = 2
Key = ""
Object.Tag = ""
EndProperty
BeginProperty Panel3 {0713E89F-850A-101B-AFC0-4210102A8DA7}
AutoSize = 1
Object.Width = 11589
Key = ""
Object.Tag = ""
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "FRMXXKC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim DAT As Database
Dim RECDATA As Recordset
Dim BADDNEW As Boolean
Private Sub Combo1_Click()
Dim SQLBJ As String
Dim RECBJ As Recordset
Dim I As Integer
Combo2.Clear
SQLBJ = "SELECT DISTINCT BANJMC FROM BANJGL WHERE YX='" + Trim(Combo1.Text) + "'"
Set RECBJ = DAT.OpenRecordset(SQLBJ, dbOpenSnapshot)
If Not RECBJ.BOF Then RECBJ.MoveFirst
For I = 0 To RECBJ.RecordCount - 1
Combo2.AddItem RECBJ.Fields(0)
If Not RECBJ.EOF Then RECBJ.MoveNext
Next I
End Sub
Private Sub Combo2_Click()
Dim sqlzd As String
Dim reczd As Recordset
Combo3.Clear
If Not IsNull(Combo2.ListIndex) Then
sqlzd = "select * from " + Trim(Combo2.Text) + ""
Set reczd = Nothing
Set reczd = DAT.OpenRecordset(sqlzd, dbOpenDynaset)
For I = 4 To reczd.Fields.Count - 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -