C
Carl Rapson
I have an Access 2002 application that uses the FileSearch object to search
the Excel files within a folder for a given text string. Something like
this:
With FileSearch
.LookIn = ActiveWorkOrderPath
.FileType = msoFileTypeExcelWorkbooks
.MatchTextExactly = False
.TextOrProperty = Me.txtSearch.Value
.Execute
If .FoundFiles.Count > 0 Then
For FileCount = 1 To .FoundFiles.Count
' process .FoundFiles.Item(FileCount)
Next FileCount
End If
End With
Access 2007 no longer has the FileSearch object, so is there another way to
accomplish this?
Thanks,
Carl Rapson
the Excel files within a folder for a given text string. Something like
this:
With FileSearch
.LookIn = ActiveWorkOrderPath
.FileType = msoFileTypeExcelWorkbooks
.MatchTextExactly = False
.TextOrProperty = Me.txtSearch.Value
.Execute
If .FoundFiles.Count > 0 Then
For FileCount = 1 To .FoundFiles.Count
' process .FoundFiles.Item(FileCount)
Next FileCount
End If
End With
Access 2007 no longer has the FileSearch object, so is there another way to
accomplish this?
Thanks,
Carl Rapson