application.filesearch in2003 (1 Viewer)

nevsad

New member
Local time
Today, 15:37
Joined
Mar 3, 2020
Messages
5
Dim fs
Set fs = Application.FileSearch
With fs
.LookIn = "C: \ windows"
.FileName = "print.txt"

If .Execute> 0 Then

'code ...

End If
End With
this code works in 2003
what happened to FileSearch in 2007
thanks in advance
 

Jon

Access World Site Owner
Staff member
Local time
Today, 14:37
Joined
Sep 28, 1999
Messages
7,400
Welcome to the forums! We are the most active Microsoft Access community on the internet by far, with posts going back over 20 years!

Here are just a couple of tips for you:

1. Feel free to ask any question you like, however basic you may feel it is, or even if it has been answered before. Our expert members thrive on helping you out!

2. If you prefer a dark theme to the forums, just go to the bottom left of this forum and click "Default style". You will then see a selection of themes to choose from. I like Shades of Blue. :)

3. If you like any of the answers you get, feel free to click the "Like" link on the bottom right hand corner of the post. If you hover over the Like link, you can even choose the type of smiley.

Above all, hang around here, have fun, learn stuff and join in.
 

Gasman

Enthusiastic Amateur
Local time
Today, 14:37
Joined
Sep 21, 2011
Messages
14,320
No idea, but that path is not going to work?
Code:
Dim fs
Set fs = Application.FileSearch
With fs
.LookIn = "C: \ windows"
.FileName = "print.txt"

If .Execute> 0 Then

'code ...

End If
End With
 

Users who are viewing this thread

Top Bottom