📄 dataenv.dsr
字号:
VERSION 5.00
Begin {C0E45035-5775-11D0-B388-00A0C9055D8E} DataEnv
ClientHeight = 9495
ClientLeft = 0
ClientTop = 0
ClientWidth = 9975
_ExtentX = 17595
_ExtentY = 16748
FolderFlags = 1
TypeLibGuid = "{D83463CC-6778-4A1C-B834-F803C75588FC}"
TypeInfoGuid = "{9ED6148B-C14B-4624-AE97-68C9A81962D6}"
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 = "sqlSeek"
CommDispId = 1002
RsDispId = 1006
CommandText = "select serial, name from 学生信息表 order by serial"
ActiveConnectionName= "Con"
CommandType = 1
Locktype = 4
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 Recordset2
CommandName = "Student"
CommDispId = 1007
RsDispId = 1012
CommandText = "学生信息表"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 9
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 = 50
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
BeginProperty Field9
Precision = 0
Size = 1073741823
Scale = 0
Type = 205
Name = "Photo"
Caption = "Photo"
EndProperty
NumGroups = 0
ParamCount = 0
RelationCount = 0
AggregateCount = 0
EndProperty
BeginProperty Recordset3
CommandName = "Department"
CommDispId = 1013
RsDispId = 1018
CommandText = "系别信息表"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
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 Recordset4
CommandName = "Class"
CommDispId = 1019
RsDispId = 1024
CommandText = "班级信息表"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
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 Recordset5
CommandName = "Admin"
CommDispId = 1025
RsDispId = 1030
CommandText = "系统人员表"
ActiveConnectionName= "Con"
CommandType = 2
dbObjectType = 1
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 = 1031
RsDispId = 1036
CommandText = "select * from 学生信息表"
ActiveConnectionName= "Con"
CommandType = 1
Locktype = 3
IsRSReturning = -1 'True
NumFields = 9
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 = 50
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
BeginProperty Field9
Precision = 0
Size = 1073741823
Scale = 0
Type = 205
Name = "Photo"
Caption = "Photo"
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
Option Explicit
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 + -