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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSystem

Status
Not open for further replies.

PeterL

IS-IT--Management
Oct 30, 2000
129
US
I am trying to verify that a file exist. The file will always be named the same and in the same location. I am using the following code without much luck. Any thoughts as to my error.

If FileSystem.Dir("c:\FromCounter.txt") <> "" Then
DoCmd.Close acForm, "AboutForm", acSaveYes
End If
 
Hi. Try insted

If Dir("C:\FromCounter.Txt") = "" then
DoCmd.Close acForm, "AboutForm", acSaveYes
End if

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top