?? dataenv.dsr
字號:
VERSION 5.00
Begin {C0E45035-5775-11D0-B388-00A0C9055D8E} DataEnv
ClientHeight = 9255
ClientLeft = 3795
ClientTop = 870
ClientWidth = 10815
_ExtentX = 19076
_ExtentY = 16325
FolderFlags = 7
TypeLibGuid = "{A5DC9AF5-9235-11D1-B067-00DD01144174}"
TypeInfoGuid = "{A5DC9AF6-9235-11D1-B067-00DD01144174}"
TypeInfoCookie = 0
Version = 4
NumConnections = 1
BeginProperty Connection1
ConnectionName = "Con"
ConnDispId = 1001
SourceOfData = 3
ConnectionSource= $"DataEnv.dsx":0000
Expanded = -1 'True
QuoteChar = 96
SeparatorChar = 46
EndProperty
NumRecordsets = 6
BeginProperty Recordset1
CommandName = "Student"
CommDispId = 1002
RsDispId = 1381
CommandText = "Student"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 8
BeginProperty Field1
Precision = 0
Size = 7
Scale = 0
Type = 202
Name = "Serial"
Caption = "Serial"
EndProperty
BeginProperty Field2
Precision = 0
Size = 10
Scale = 0
Type = 202
Name = "Name"
Caption = "Name"
EndProperty
BeginProperty Field3
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "class"
Caption = "class"
EndProperty
BeginProperty Field4
Precision = 0
Size = 8
Scale = 0
Type = 7
Name = "Birthday"
Caption = "Birthday"
EndProperty
BeginProperty Field5
Precision = 0
Size = 2
Scale = 0
Type = 202
Name = "sex"
Caption = "sex"
EndProperty
BeginProperty Field6
Precision = 0
Size = 30
Scale = 0
Type = 202
Name = "Address"
Caption = "Address"
EndProperty
BeginProperty Field7
Precision = 0
Size = 15
Scale = 0
Type = 202
Name = "tel"
Caption = "tel"
EndProperty
BeginProperty Field8
Precision = 0
Size = 536870910
Scale = 0
Type = 203
Name = "resume"
Caption = "resume"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset2
CommandName = "Department"
CommDispId = 1009
RsDispId = 1368
CommandText = "Department"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 2
BeginProperty Field1
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "id"
Caption = "id"
EndProperty
BeginProperty Field2
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "Name"
Caption = "Name"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset3
CommandName = "Class"
CommDispId = 1025
RsDispId = 1367
CommandText = "Class"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 2
BeginProperty Field1
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "Name"
Caption = "Name"
EndProperty
BeginProperty Field2
Precision = 10
Size = 4
Scale = 0
Type = 3
Name = "dept_id"
Caption = "dept_id"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset4
CommandName = "sqlSeek"
CommDispId = 1035
RsDispId = 1383
CommandText = "select serial, name from student order by serial"
ActiveConnectionName= "Con"
CommandType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 2
BeginProperty Field1
Precision = 0
Size = 7
Scale = 0
Type = 202
Name = "serial"
Caption = "serial"
EndProperty
BeginProperty Field2
Precision = 0
Size = 10
Scale = 0
Type = 202
Name = "name"
Caption = "name"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset5
CommandName = "Admin"
CommDispId = 1164
RsDispId = 1373
CommandText = "Admin"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 2
BeginProperty Field1
Precision = 0
Size = 10
Scale = 0
Type = 202
Name = "name"
Caption = "name"
EndProperty
BeginProperty Field2
Precision = 0
Size = 8
Scale = 0
Type = 202
Name = "pwd"
Caption = "pwd"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset6
CommandName = "rptStudent"
CommDispId = 1178
RsDispId = 1374
CommandText = "select * from student"
ActiveConnectionName= "Con"
CommandType = 1
IsRSReturning = -1 'True
NumFields = 8
BeginProperty Field1
Precision = 0
Size = 7
Scale = 0
Type = 202
Name = "Serial"
Caption = "Serial"
EndProperty
BeginProperty Field2
Precision = 0
Size = 10
Scale = 0
Type = 202
Name = "Name"
Caption = "Name"
EndProperty
BeginProperty Field3
Precision = 0
Size = 50
Scale = 0
Type = 202
Name = "class"
Caption = "class"
EndProperty
BeginProperty Field4
Precision = 0
Size = 8
Scale = 0
Type = 7
Name = "Birthday"
Caption = "Birthday"
EndProperty
BeginProperty Field5
Precision = 0
Size = 2
Scale = 0
Type = 202
Name = "sex"
Caption = "sex"
EndProperty
BeginProperty Field6
Precision = 0
Size = 30
Scale = 0
Type = 202
Name = "Address"
Caption = "Address"
EndProperty
BeginProperty Field7
Precision = 0
Size = 15
Scale = 0
Type = 202
Name = "tel"
Caption = "tel"
EndProperty
BeginProperty Field8
Precision = 0
Size = 536870910
Scale = 0
Type = 203
Name = "resume"
Caption = "resume"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
End
Attribute VB_Name = "DataEnv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "RVB_ModelStereotype" ,"DataEnvironment"
Private Sub DataEnvironment_Initialize()
''根據目錄所在的位置,改變ADO所使用的的連接字符串
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=;Data Source="
strConn = strConn & App.Path & "\student.mdb" & ";Persist Security Info=True"
Con.ConnectionString = strConn
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -