I got form somone this ***If Dir("C:\Windows\Sample.txt") <> vbNullString
Then** BUT IT DOSE NOT WORK!
Here's a slight variation that I prefer:
If Len(Dir("C:\Windows\Sample.txt")) > 0 Then
' the file exists
Else
' the file does not exist
End If
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Jone" <Jo...@discussions.microsoft.com> wrote in message
news:1D111BA4-C992-4FBF...@microsoft.com...