📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BackColor = &H00808080&
Caption = "ACCESS TO EXCEL "
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.TextBox Text1
BackColor = &H80000004&
Height = 615
Left = 4560
TabIndex = 9
Top = 7080
Width = 2895
End
Begin VB.CommandButton Command2
BackColor = &H00808080&
Caption = "EXIT"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6360
Style = 1 'Graphical
TabIndex = 5
Top = 7920
Width = 1335
End
Begin VB.CommandButton Command1
BackColor = &H00808080&
Caption = "OK"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4200
Style = 1 'Graphical
TabIndex = 3
Top = 7920
Width = 1335
End
Begin VB.FileListBox File1
BackColor = &H00C0C0C0&
Height = 1845
Left = 7320
TabIndex = 2
Top = 5040
Width = 2415
End
Begin VB.DirListBox Dir1
BackColor = &H00C0C0C0&
Height = 2115
Left = 7320
TabIndex = 1
Top = 2400
Width = 2415
End
Begin VB.DriveListBox Drive1
BackColor = &H00C0C0C0&
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 7320
TabIndex = 0
Top = 1440
Width = 2415
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00808080&
BorderStyle = 1 'Fixed Single
Caption = "SELECT THE MDB FILE >>>>"
BeginProperty Font
Name = "Times New Roman"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 450
Left = 1200
TabIndex = 8
Top = 5880
Width = 5085
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00808080&
BorderStyle = 1 'Fixed Single
Caption = "SELECT THE DIRECTORY >>>>"
BeginProperty Font
Name = "Times New Roman"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 450
Left = 1200
TabIndex = 7
Top = 3120
Width = 5475
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00808080&
BorderStyle = 1 'Fixed Single
Caption = "SELECT THE DRIVE >>>>"
BeginProperty Font
Name = "Times New Roman"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 450
Left = 1320
TabIndex = 6
Top = 1440
Width = 4455
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00808080&
Caption = "CONVERSION OF ACCESS DATA TO EXCEL "
BeginProperty Font
Name = "Times New Roman"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 540
Left = 720
TabIndex = 4
Top = 360
Width = 10185
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim I As Integer
Dim STR1 As String
Dim STR As String
STR1 = File1.Path
STR = File1.Path + "\" + File1.FileName
Form1.Show
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Dir1_Change()
Dim STR As String
Dir1.Refresh
File1.Refresh
File1.Pattern = "*.MDB"
File1.Path = Dir1.Path
File1.Enabled = True
End Sub
Private Sub Drive1_Change()
Drive1.Refresh
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Dim STR As String
Command1.Enabled = True
Dim STR1 As String
STR1 = File1.Path
STR = File1.Path + "\" + File1.FileName
Text1.Text = STR
End Sub
Private Sub Form_Load()
Text1.Enabled = False
File1.Enabled = True
Command1.Enabled = False
File1.Pattern = "*.MDB"
File1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -