📄 fadbexample.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form fADBexample
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text3
Height = 285
Left = 2400
TabIndex = 6
Text = "C:\TemplateFile1.txt"
Top = 1200
Width = 7695
End
Begin RichTextLib.RichTextBox RichTextBox1
Height = 6495
Left = 120
TabIndex = 3
Top = 1560
Width = 11175
_ExtentX = 19711
_ExtentY = 11456
_Version = 393217
Enabled = -1 'True
ScrollBars = 3
TextRTF = $"fADBexample.frx":0000
End
Begin VB.CommandButton Command1
Caption = "CreateNewDataBase"
Height = 375
Left = 480
TabIndex = 2
Top = 0
Width = 1815
End
Begin VB.TextBox Text2
Height = 285
Left = 2400
TabIndex = 1
Text = "C:\00StockResearch\Data\Example.mdb"
Top = 840
Width = 7695
End
Begin VB.TextBox Text1
Height = 285
Left = 2400
TabIndex = 0
Text = "C:\00StockResearch\Data\DataBase\StockDataV3.mdb"
Top = 480
Width = 7695
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "Template File Name:"
Height = 255
Left = 120
TabIndex = 7
Top = 1200
Width = 2175
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "DataBase Name to Create:"
Height = 255
Left = 120
TabIndex = 5
Top = 840
Width = 2175
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "DataBase Name to Read:"
Height = 255
Left = 120
TabIndex = 4
Top = 480
Width = 2175
End
End
Attribute VB_Name = "fADBexample"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim ADB As cAccessDataBaseReadCreate
Dim FP As Integer, Vd(4) As Variant, SS As String, SS1 As String
Set ADB = New cAccessDataBaseReadCreate
ADB.createDBtemplate Text1.Text, Text3.Text
ADB.CreateDBfromTemplate Text2.Text, Text3.Text
If Dir(Text3.Text) <> "" Then
FP = FreeFile: SS1 = ""
Open Text3.Text For Input As #FP
Line Input #FP, SS
RichTextBox1.Text = SS & vbCrLf
Do
Line Input #FP, SS
RichTextBox1.Text = RichTextBox1.Text & SS & vbCrLf
If SS1 = "" Then
SS1 = SS
ElseIf SS1 = SS Then
Exit Do
End If
Loop
End If
Set ADB = Nothing
End Sub
Private Sub Form_Load()
Me.WindowState = vbMaximized
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -