I am trying to check to see if a directory exists. If it does not it needs to create the directory. If it does exists go to next procedure.
The code works if it does not exists, but does not work if the directory exists.
Code:
If Len(Dir("H:\Scorecards\")) = 0 Then
MkDir ("H:\Scorecards\")
End If
The code works if it does not exists, but does not work if the directory exists.
Code:
If Len(Dir("H:\Scorecards\")) = 0 Then
MkDir ("H:\Scorecards\")
End If