What Code Do I Write ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What code do I write when I want my main menu form to check for a file before
it opens if it cannot find the file it should not open ? for Ex. check if I
have the file C:\Windows\Sample.txt if it cannot find if it should not open
 
Allen Browne said:
If Dir("C:\Windows\Sample.txt") <> vbNullString Then

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.



Sorry it dose not work
 
Back
Top