📄 form8.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Form8
Caption = "Form8"
ClientHeight = 5370
ClientLeft = 60
ClientTop = 345
ClientWidth = 8010
LinkTopic = "Form8"
ScaleHeight = 5370
ScaleWidth = 8010
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton open
Caption = "查询出题结果"
Height = 615
Left = 5520
TabIndex = 13
Top = 4560
Width = 1215
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "Form8.frx":0000
DataField = "是否考试"
DataSource = "Adodc1"
Height = 330
Left = 3840
TabIndex = 11
Top = 3600
Width = 2295
_ExtentX = 4048
_ExtentY = 582
_Version = 393216
ListField = "sf"
Text = "DataCombo1"
End
Begin VB.CommandButton Command4
Caption = "保存"
Height = 375
Left = 4320
TabIndex = 0
Top = 4800
Width = 855
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 4920
Width = 3375
_ExtentX = 5953
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Mode=Read|Write;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Mode=Read|Write;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tkgl"
Caption = "浏览记录"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 360
Top = 4440
Visible = 0 'False
Width = 3375
_ExtentX = 5953
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "sf"
Caption = "浏览记录"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label11
Caption = "是否出卷"
Height = 375
Left = 1560
TabIndex = 12
Top = 3600
Width = 1815
End
Begin VB.Label Label10
Caption = "Label10"
DataField = "题目"
DataSource = "Adodc1"
Height = 1575
Left = 840
TabIndex = 10
Top = 1560
Width = 6135
End
Begin VB.Label Label9
Caption = "Label9"
DataField = "分数"
DataSource = "Adodc1"
Height = 375
Left = 6240
TabIndex = 9
Top = 720
Width = 1455
End
Begin VB.Label Label8
Caption = "Label8"
DataField = "科目"
DataSource = "Adodc1"
Height = 375
Left = 4080
TabIndex = 8
Top = 720
Width = 1095
End
Begin VB.Label Label7
Caption = "Label7"
DataField = "类型"
DataSource = "Adodc1"
Height = 375
Left = 1440
TabIndex = 7
Top = 720
Width = 1335
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "题目类型"
Height = 255
Left = 360
TabIndex = 6
Top = 720
Width = 735
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "题目"
Height = 255
Left = 360
TabIndex = 5
Top = 1560
Width = 735
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "所属科目"
Height = 255
Left = 3120
TabIndex = 4
Top = 720
Width = 735
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "分数"
Height = 255
Left = 5520
TabIndex = 3
Top = 720
Width = 735
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "题目编号"
Height = 255
Left = 360
TabIndex = 2
Top = 120
Width = 1215
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "Label6"
DataField = "编号"
DataSource = "Adodc1"
Height = 255
Left = 1680
TabIndex = 1
Top = 120
Width = 975
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mycn As New ADODB.Connection
Dim myrs As New ADODB.Recordset
Private Sub Command1_Click()
DataReport1.Show
End Sub
Private Sub Command4_Click()
myrs.AddNew
myrs.Fields(2) = Label7.Caption
myrs.Fields(0) = Label6.Caption
myrs.Fields(3) = Label8.Caption
myrs.Fields(4) = Label9.Caption
myrs.Fields(1) = Label10.Caption
myrs.Update
End Sub
Private Sub Form_Load()
Set myrs = New ADODB.Recordset
mycn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;"
myrs.open "select * from sj ", mycn, adOpenKeyset, adLockOptimistic
'Label2.Caption = CStr(myrs.RecordCount())
End Sub
Private Sub open_Click()
Form10.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -