form1.frm
来自「vb电子书籍」· FRM 代码 · 共 37 行
FRM
37 行
VERSION 5.00
Begin VB.Form Form1
Caption = "显示数据表的内容"
ClientHeight = 1800
ClientLeft = 60
ClientTop = 345
ClientWidth = 6285
LinkTopic = "Form1"
ScaleHeight = 1800
ScaleWidth = 6285
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 255
Left = 3840
TabIndex = 0
Top = 960
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim path As String
path = App.path
If Right(mpath, 1) <> "\" Then path = path + "\"
Form2.Data1.DatabaseName = "student.mdb"
Form2.Data1.RecordSource = "基本情况表"
Form2.Show
Unload Form1
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?