Dim strFile As String
Const strPath As String = "C:\YourFolder\"
strFile = Dir(strPath & "abc*.txt")
Do While strFile <> ""
' strFile contains the file name (e.g., abcFirstFile.txt)
' you can do what you want with it and strPath
' ( put code steps here )
'
' ( end of your code steps )
' read name of next file
strFile = Dir()
Loop
Do you know how to open a recordset and write data to a table?
Dim strFile As String
Const strPath As String = "C:\YourFolder\"
strFile = Dir(strPath & "abc*.txt")
Do While strFile <> ""
' strFile contains the file name (e.g., abcFirstFile.txt)
' you can do what you want with it and strPath
' ( put code steps here )
'
' ( end of your code steps )
' read name of next file
strFile = Dir()
Loop
Do you know how to open a recordset and write data to a table?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.