P
pubdude2003 via AccessMonster.com
For instances where my FolderPath value is "C:\MyQuotation\Jan" it won't
create the directory. Is there something I can do to correct the code?
Dim Path As String
If Not IsNull(DLookup("FolderPath", "UserPass")) Then
Path = (DLookup("FolderPath", "UserPass"))
End If
If Dir(Path, vbDirectory) = "" Then
MkDir Path
End If
Dim strLinkPath As String
Dim objShell As Object
If Path = "" Then
Set objShell = CreateObject("WScript.Shell")
strLinkPath = objShell.SpecialFolders("MyDocuments")
Else
strLinkPath = Path
End If
create the directory. Is there something I can do to correct the code?
Dim Path As String
If Not IsNull(DLookup("FolderPath", "UserPass")) Then
Path = (DLookup("FolderPath", "UserPass"))
End If
If Dir(Path, vbDirectory) = "" Then
MkDir Path
End If
Dim strLinkPath As String
Dim objShell As Object
If Path = "" Then
Set objShell = CreateObject("WScript.Shell")
strLinkPath = objShell.SpecialFolders("MyDocuments")
Else
strLinkPath = Path
End If