Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Search Not starting over

Status
Not open for further replies.

DougAtAvalon

Programmer
Jan 29, 2001
99
0
0
US
The following code works fine at one computer but not on another. Ther problem is the ".lookin" line is not reading the object. I also tried to set it to a string variable. It seems the lookin is "stuck" on some setting of "c:/winnt/...". Any ideas?

thanx
-Doug

************
With Application.FileSearch
.NewSearch
.lookin = Forms![Organizations].Form.CompletedQuestionnairesPath
.SearchSubFolders = False
.Filename = "*.doc"
.MatchTextExactly = False
If .Execute() > 0 Then
If .FoundFiles.Count > 1 Then
For i = 1 To .FoundFiles.Count
.
.
.
******************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top