Hi again - I've been using the following code to see if a directory exists and if it doesn't, it creates it:
[CODE=vb]Dim isTrue As Boolean
isTrue = DirExist(strPat h)
If isTrue Then
'do nothing
Else
DirCreateNested (strPath)
End If
strfilename = strPath & "\" & Mid(oRs![Account], 5) & ".doc"[/CODE]
strpath is specified in the earlier part of the code as
There are several people using the database and of course their drives are mapped differently. I wanted to use the network path in place of the drive letter (so there's only one database out there) but I get an error message stating that the path isn't found.
Does the network path not work with this function or do I need to do something different?
[CODE=vb]Dim isTrue As Boolean
isTrue = DirExist(strPat h)
If isTrue Then
'do nothing
Else
DirCreateNested (strPath)
End If
strfilename = strPath & "\" & Mid(oRs![Account], 5) & ".doc"[/CODE]
strpath is specified in the earlier part of the code as
Code:
strpath = I:\Folder\Subfolder\template.doc
Does the network path not work with this function or do I need to do something different?
Comment