Hey guys. Me again
Im currently using a array of files from a esternal folder as follows
How can i set this to make this array with the tables names in access?
Thx in advance for the help

Im currently using a array of files from a esternal folder as follows
Code:
Dim nFiles As Integer
Dim FileName As String
ReDim Files(1 To 10) As String
Const Path As String = "G:\xTemp\txt.NET\"
FileName = Dir(Path & "*.*")
Do While (Len(FileName) > 0)
nFiles = nFiles + 1
' If array is full...
If nFiles = UBound(Files) Then
' Make room for 10 more files
ReDim Preserve Files(1 To nFiles + 10)
End If
Files(nFiles) = FileName
'If no more files exist exit loop
If FileName = "" Then Exit Do
'Make FileName without .txt extension
FileName = Left(FileName, InStr(1, FileName, ".") - 1)
'Get next file
FileName = Dir()
Loop
Thx in advance for the help
Last edited: