Happy Friday All!!!
I have some code that I've been using:
Function Import()
With Application.FileSearch
.NewSearch
.LookIn = "S:\PROJECTS\LINKAGE\OMSGROUP\Military\"
.SearchSubFolders = True
.filename = "*.txt"
.MatchTextExactly = True
End With
With Application.FileSearch
If .Execute() > 0 Then
For I = 1 To .FoundFiles.Count
DoCmd.TransferText acImportDelim, "AAFES Import Specification", Right(.FoundFiles(I), Len(.FoundFiles(I)) - InStrRev(.FoundFiles(I), "\")), .FoundFiles(I), False
Next I
End If
End With
End Function
What I would like to do is import only rows of a file based on a date range. The dates will always be in the same position of the table. Is it possible modifying this code?
Thanks in advance.
ChiTownDiva
I have some code that I've been using:
Function Import()
With Application.FileSearch
.NewSearch
.LookIn = "S:\PROJECTS\LINKAGE\OMSGROUP\Military\"
.SearchSubFolders = True
.filename = "*.txt"
.MatchTextExactly = True
End With
With Application.FileSearch
If .Execute() > 0 Then
For I = 1 To .FoundFiles.Count
DoCmd.TransferText acImportDelim, "AAFES Import Specification", Right(.FoundFiles(I), Len(.FoundFiles(I)) - InStrRev(.FoundFiles(I), "\")), .FoundFiles(I), False
Next I
End If
End With
End Function
What I would like to do is import only rows of a file based on a date range. The dates will always be in the same position of the table. Is it possible modifying this code?
Thanks in advance.
ChiTownDiva