📄 dataenv.dsr
字号:
EndProperty
BeginProperty Field3
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "QuestionType"
Caption = "QuestionType"
EndProperty
BeginProperty Field4
Precision = 0
Size = 536870910
Scale = 0
Type = 203
Name = "UserAnswer"
Caption = "UserAnswer"
EndProperty
BeginProperty Field5
Precision = 7
Size = 4
Scale = 0
Type = 4
Name = "Score"
Caption = "Score"
EndProperty
BeginProperty Field6
Precision = 7
Size = 4
Scale = 0
Type = 4
Name = "Commence"
Caption = "Commence"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset6
CommandName = "RorWQ"
CommDispId = 1018
RsDispId = 1043
CommandText = "RightOrWrong"
ActiveConnectionName= "DataConn"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 5
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "QustionID"
Caption = "QustionID"
EndProperty
BeginProperty Field2
Precision = 0
Size = 250
Scale = 0
Type = 202
Name = "Qustion"
Caption = "Qustion"
EndProperty
BeginProperty Field3
Precision = 0
Size = 2
Scale = 0
Type = 11
Name = "Answer"
Caption = "Answer"
EndProperty
BeginProperty Field4
Precision = 7
Size = 4
Scale = 0
Type = 4
Name = "Score"
Caption = "Score"
EndProperty
BeginProperty Field5
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "TeacherID"
Caption = "TeacherID"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset7
CommandName = "SingleSelQ"
CommDispId = 1044
RsDispId = 1049
CommandText = "SingleSel"
ActiveConnectionName= "DataConn"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 9
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "QuestionID"
Caption = "QuestionID"
EndProperty
BeginProperty Field2
Precision = 0
Size = 250
Scale = 0
Type = 202
Name = "Question"
Caption = "Question"
EndProperty
BeginProperty Field3
Precision = 0
Size = 20
Scale = 0
Type = 202
Name = "Choice1"
Caption = "Choice1"
EndProperty
BeginProperty Field4
Precision = 0
Size = 20
Scale = 0
Type = 202
Name = "Choice2"
Caption = "Choice2"
EndProperty
BeginProperty Field5
Precision = 0
Size = 20
Scale = 0
Type = 202
Name = "Choice3"
Caption = "Choice3"
EndProperty
BeginProperty Field6
Precision = 0
Size = 20
Scale = 0
Type = 202
Name = "Choice4"
Caption = "Choice4"
EndProperty
BeginProperty Field7
Precision = 3
Size = 1
Scale = 0
Type = 17
Name = "Anwser"
Caption = "Anwser"
EndProperty
BeginProperty Field8
Precision = 7
Size = 4
Scale = 0
Type = 4
Name = "Score"
Caption = "Score"
EndProperty
BeginProperty Field9
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "TeacherID"
Caption = "TeacherID"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset8
CommandName = "TchTable"
CommDispId = 1050
RsDispId = 1055
CommandText = "Teachers"
ActiveConnectionName= "DataConn"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 3
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "TeacherID"
Caption = "TeacherID"
EndProperty
BeginProperty Field2
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "TeacherName"
Caption = "TeacherName"
EndProperty
BeginProperty Field3
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "TeacherPassword"
Caption = "TeacherPassword"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset9
CommandName = "DelQuestion"
CommDispId = 1057
RsDispId = -1
CommandText = "Delete * From QuestionPaper"
ActiveConnectionName= "DataConn"
CommandType = 1
NumFields = 0
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset10
CommandName = "usertable"
CommDispId = 1059
RsDispId = 1061
CommandText = "usertable"
ActiveConnectionName= "DataConn"
CommandType = 2
dbObjectType = 1
IsRSReturning = -1 'True
NumFields = 3
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "userid"
Caption = "userid"
EndProperty
BeginProperty Field2
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "username"
Caption = "username"
EndProperty
BeginProperty Field3
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "userpassword"
Caption = "userpassword"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
End
Attribute VB_Name = "DataEnv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataEnvironment_Initialize()
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=;Data Source="
Rem App对象表示应用程序,App.Path则表示应用程序运行路径名
strConn = strConn & App.Path & "\Test.mdb" & ";Persist Security Info=True"
DataConn.ConnectionString = strConn
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -