I have this function in my Form1,Form2,Form3 .. a bit of stupid way to do it..
VB Code:
Function File_Exists(strFilePath As String) If Dir(strFilePath, vbNormal + vbHidden + vbSystem + vbReadOnly) = "" Then File_Exists = False Else File_Exists = True End If End Function
if i just simply put that in a module exactly how it is, will it work from form1,form2,form ?
i use it like this..
If File_Exists("C:\test.txt) Then... 'etc..
