how to detect if file exists

J

JB

Is there any way to detect if a file exists?

I want my database to display a command button only if file "export.csv"
exists on the server.
 
R

Rick Brandt

JB said:
Is there any way to detect if a file exists?

I want my database to display a command button only if file "export.csv"
exists on the server.

Dir("full path to export.csv")

Will return "export/csv" if the file exists and "" if it does not.
 
Top