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 strongm 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
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
.
.
.
 
Hi!

Check references of your Codes. Press <Tools;References>. You can compare references and these order with working application. I think you miss reference to DAO library (DAO360.dll).

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top