I am trying to figure out how to properly move folders on a network using VBA code from an MS access form.
I am currently trying to use the FileSystemObject.MoveFolder method, but continue to work with the "Permissions Denied" error.
I referenced this SO question and none of the best suggestions worked.
Deny CopyFile in VBS
I checked that SourcePath and DestinationPath are both valid using this function for MoveFolders on my local machine. I also confirmed that both folders have the appropriate network permissions. See below

So my question is: is there a way to provide credentials using a FileSystemObject? or should I use another function entirely?
EDIT:
, . .
hardcoding FSO.MoveFolder
Private Sub Check6_AfterUpdate()
On Error GoTo Err_DormantHandler
Dim response As String
Dim client As String
Dim FSO As Object
Dim fromPath As String
Dim toPath As String
Set FSO = CreateObject("Scripting.Filesystemobject")
client = Me.CustomerName.Value
fromPath = "P:\__Active_Clients\" & client
toPath = "R:\Dormant_Clients\"
If Me.Check6.Value = True Then
response = MsgBox("Would you like to automatically move the " & client & " folder to the dormant folder?", vbYesNo)
If response = vbYes Then
If FSO.FolderExists(fromPath) = False Then
MsgBox fromPath & " doesn't exist."
Exit Sub
End If
If FSO.FolderExists(toPath) = False Then
MsgBox toPath & " doesn't exist."
Exit Sub
End If
FSO.MoveFolder source:=fromPath, destination:=toPath
MsgBox "The customer folder has been moved to " & vbNewLine & toPath, vbOKOnly
End If
If response = vbNo Then
MsgBox "The customer folder will NOT be moved to dormant"
Exit Sub
End If
End If
Exit_DormantHandler:
Exit Sub
Err_DormantHandler:
MsgBox "Error# " & Err & vbNewLine & "Description: " & Error$
Resume Exit_DormantHandler
End Sub