ex-8-7.frm
来自「vb数据库编程资料」· FRM 代码 · 共 82 行
FRM
82 行
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3210
ClientLeft = 60
ClientTop = 450
ClientWidth = 4920
LinkTopic = "Form1"
ScaleHeight = 3210
ScaleWidth = 4920
StartUpPosition = 3 '窗口缺省
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid2
Bindings = "ex-8-7.frx":0000
Height = 1335
Left = 120
TabIndex = 1
Top = 1800
Width = 4695
_ExtentX = 8281
_ExtentY = 2355
_Version = 393216
FixedCols = 0
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "ex-8-7.frx":0014
Height = 1215
Left = 120
TabIndex = 0
Top = 0
Width = 4695
_ExtentX = 8281
_ExtentY = 2143
_Version = 393216
FixedCols = 0
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\tongaihong\桌面\VB数据库程序与数据\08\教学.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 2640
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 1320
Width = 2295
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\tongaihong\桌面\VB数据库程序与数据\08\教学.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 120
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "教师表"
Top = 1320
Width = 2295
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Data1_Reposition()
Dim SQLStr As String
SQLStr = "Select * from 课程表 Where 教师编号=" & "'" & Data1.Recordset.Fields("教师编号") & "'"
Data2.RecordSource = SQLStr
Data2.Refresh
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?