troubleshooting Question

Create Folder in Visual Basic

Avatar of filtrationproducts
filtrationproductsFlag for United States of America asked on
Microsoft AccessVisual Basic Classic
12 Comments2 Solutions1441 ViewsLast Modified:
I currently use the code inside a visual basic application to create the folder in the format below;


I would like it to create the Documentation folder inside the PMR-1 instead like this;


Is this possible? I attached the code I use now below.
Private Sub Command99_Click()
        Dim strPath As String
    Dim strFolderName As String
    Dim FolderName As String
strPath = "V:\7.3\F730000_Hyperlinks\"
strFolderName = "PMR-" & Me.ID_PMR.Value & "_CustomerCommunication"
FolderName = (strPath & strFolderName)
If Len(Dir(FolderName, vbDirectory)) = 0 Then
    MkDir FolderName
    Call Shell("explorer.exe " & FolderName, 1)
    Call Shell("explorer.exe " & FolderName, 1)
End If
End Sub
Join our community to see this answer!
Unlock 2 Answers and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros