Can you show a brief example of the desired folder structure and your existing data?
Something like
Assignee
John Doe
Harry Truman
Folders
\\Server\Share\AssigneeData\JohnDoe
\\Server\Share\AssigneeData\HarryTruman
You will almost certainly need a loop, based of a recordset.
Button to run the code.. The mainform fields create the Mainfolder and subfolder. I need to then create assignee folders in the subfolder based on assignee values ion the subform/query.. E:G
Mainfolder
subfolder
John Doe
Harry Trueman
the Here is the code i currently use to make the mainfolder and subfolder
Const Info = "\sharepoint\folder\"
Dim Folder As String
Dim Folder2 As String
Dim fso As Object
This creates the main folder based on the mainform fields
Folder = Environ("UserProfile") & Info & Me!Location
Folder2 = Folder & "\" & "Job No" & " " & [Job Number] & " " & "-" & " " & Me!Job
' Create FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
' Check whether folder exists
If fso.FolderExists(Folder) = False Then
' If not, create it
fso.CreateFolder Folder
End If
If fso.FolderExists(Folder2) = False Then
fso.CreateFolder (Folder2)
End If
' Open it
'shell "explorer.exe " & Folder, vbNormalFocus