Hello everyone.
I'm trying to find all the table names inside an external access file from a path.
I have a code for the user to select a file which return a patch to the file.
Them I need to find all the tables names from that file and append them to a list.
so I them can input them into a code and link the tables.
here is the code to get the file patch:
hope someone can help me out
Thanks so much
I'm trying to find all the table names inside an external access file from a path.
I have a code for the user to select a file which return a patch to the file.
Them I need to find all the tables names from that file and append them to a list.
so I them can input them into a code and link the tables.
here is the code to get the file patch:
Code:
Function getFileName(path) As String
Dim f As Object
Dim varFile As Variant
Dim path
Set f = Application.FileDialog(3)
With f
f.AllowMultiSelect = True
f.Filters.Clear
f.Filters.Add "Access Databases", "*.accdb"
f.Filters.Add "All Files", "*.*"
If f.show = -1 Then
For Each varFile In f.SelectedItems
file = varFile
Next varFile
End If
End With
path = file
End Function
hope someone can help me out
Thanks so much
Last edited: