N
Newbie
Hi,
I want to check whether a file exists in a directory before I attempt to
import it
I tried:
if Dir("c:\dira\textfile.txt") then
docmd.transfertext etc
else
msgbox "File does not exist"
end if
But this does not work
How can I check for the existence of a file?
Thanks
I want to check whether a file exists in a directory before I attempt to
import it
I tried:
if Dir("c:\dira\textfile.txt") then
docmd.transfertext etc
else
msgbox "File does not exist"
end if
But this does not work
How can I check for the existence of a file?
Thanks