I
Isissoft
I am trying to output a file from Access - I use the following code to make
a folder if it does not already exist;
DestFile2="C:\Copy"
If Dir(DestFile2) = " " Then ' CHECK IF PATH EXISTS
MkDir (DestFile2) ' If NOT - Make IT
End If ' End Check Folder Name
This does work if the folder does not exist, but fails if it does already -
obviously my test is wrong ?
Can anyone give me the code to do this ?
I have a function that will do the job but I would like to sort this
problem for other reasons.
Thanks for any help.
a folder if it does not already exist;
DestFile2="C:\Copy"
If Dir(DestFile2) = " " Then ' CHECK IF PATH EXISTS
MkDir (DestFile2) ' If NOT - Make IT
End If ' End Check Folder Name
This does work if the folder does not exist, but fails if it does already -
obviously my test is wrong ?
Can anyone give me the code to do this ?
I have a function that will do the job but I would like to sort this
problem for other reasons.
Thanks for any help.