Hi Craig,
of course... construct your path and then call this procedure:
'~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MakeAPath
Function MakeAPath( _
pPath As String _
) As Boolean
MakeAPath = False
If Len(Dir(pPath, vbDirectory)) > 0 Then
'directory is already there
MakeAPath = True
GoTo Proc_Exit
End If
Dim i As Integer _
, mPos As Integer _
, mStr As String
mPos = 1
If Right(pPath, 1) <> "\" Then pPath = pPath & "\"
mPos = InStr(mPos, pPath, "\")
Do While mPos > 0
mStr = Left(pPath, mPos)
If Len(Dir(pPath, vbDirectory)) = 0 Then
On Error Resume Next
MkDir mStr
End If
mPos = InStr(mPos + 1, pPath, "\")
Loop
If Len(Dir(pPath, vbDirectory)) > 0 Then
MakeAPath = True
GoTo Proc_Exit
End If
MsgBox "Could not make path: " _
& pPath _
, , "Error making " _
& " directory"
Proc_Exit:
Exit Function
End Function
'~~~~~~~~~~~~~~~~~~
Warm Regards,
Crystal
*

have an awesome day

*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*