📄 dataenv.dsr
字号:
VERSION 5.00
Begin {C0E45035-5775-11D0-B388-00A0C9055D8E} DataEnv
ClientHeight = 10020
ClientLeft = 0
ClientTop = 0
ClientWidth = 9285
_ExtentX = 16378
_ExtentY = 17674
FolderFlags = 1
TypeLibGuid = "{B7D81BBA-8923-4F14-A405-3DAF79FB533A}"
TypeInfoGuid = "{A885F6EB-4E6E-4E6B-8F32-390801C21430}"
TypeInfoCookie = 0
Version = 4
NumConnections = 1
BeginProperty Connection1
ConnectionName = "ctCon"
ConnDispId = 1001
SourceOfData = 3
ConnectionSource= $"DataEnv.dsx":0000
Expanded = -1 'True
QuoteChar = 96
SeparatorChar = 46
EndProperty
NumRecordsets = 3
BeginProperty Recordset1
CommandName = "trCommand"
CommDispId = 1011
RsDispId = 1053
CommandText = "select * from tempTT"
ActiveConnectionName= "ctCon"
CommandType = 1
Expanded = -1 'True
IsRSReturning = -1 'True
NumFields = 11
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "iTimeN"
Caption = "iTimeN"
EndProperty
BeginProperty Field2
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cClassCode1"
Caption = "cClassCode1"
EndProperty
BeginProperty Field3
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cClassCode2"
Caption = "cClassCode2"
EndProperty
BeginProperty Field4
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cClassCode3"
Caption = "cClassCode3"
EndProperty
BeginProperty Field5
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cClassCode4"
Caption = "cClassCode4"
EndProperty
BeginProperty Field6
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cClassCode5"
Caption = "cClassCode5"
EndProperty
BeginProperty Field7
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cSubject1"
Caption = "cSubject1"
EndProperty
BeginProperty Field8
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cSubject2"
Caption = "cSubject2"
EndProperty
BeginProperty Field9
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cSubject3"
Caption = "cSubject3"
EndProperty
BeginProperty Field10
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cSubject4"
Caption = "cSubject4"
EndProperty
BeginProperty Field11
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "cSubject5"
Caption = "cSubject5"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset2
CommandName = "ct"
CommDispId = 1041
RsDispId = 1046
CommandText = "select * from tempCT"
ActiveConnectionName= "ctCon"
CommandType = 1
Expanded = -1 'True
IsRSReturning = -1 'True
NumFields = 6
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "iTimeN"
Caption = "iTimeN"
EndProperty
BeginProperty Field2
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "w1"
Caption = "w1"
EndProperty
BeginProperty Field3
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "w2"
Caption = "w2"
EndProperty
BeginProperty Field4
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "w3"
Caption = "w3"
EndProperty
BeginProperty Field5
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "w4"
Caption = "w4"
EndProperty
BeginProperty Field6
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "w5"
Caption = "w5"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset3
CommandName = "TeacherCom"
CommDispId = 1047
RsDispId = 1052
CommandText = "select * from teacher"
ActiveConnectionName= "ctCon"
CommandType = 1
Expanded = -1 'True
IsRSReturning = -1 'True
NumFields = 3
BeginProperty Field1
Precision = 0
Size = 10
Scale = 0
Type = 202
Name = "cTrName"
Caption = "cTrName"
EndProperty
BeginProperty Field2
Precision = 5
Size = 2
Scale = 0
Type = 2
Name = "iAge"
Caption = "iAge"
EndProperty
BeginProperty Field3
Precision = 0
Size = 255
Scale = 0
Type = 202
Name = "cTrDetails"
Caption = "cTrDetails"
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()
'根据目录所在的位置,改变ADO所使用的的连接字符串
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=;Data Source="
strConn = strConn & App.Path & "\DataUse.mdb" & ";Persist Security Info=True"
ctCon.ConnectionString = strConn
End Sub
Private Sub rsct1_WillChangeField(ByVal cFields As Long, ByVal Fields As Variant, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -