MoveFile method. Moves file alright, but returns error 424
Good morning/evening, wherever you happen to be.
I believe I'm having a problem whose solution is simple, but it belies my utter naivete. Here it is:
The following code (VB in MS Access) raises a runtime error 424, Object Required, however it successfully moves the file.
mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName).Check
This code has the same outcome: 424, but a successful move.
Dim moveResult As TransferOperationResult
Set moveResult = mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName)
What am I missing? Any assistance will be much appreciated!
I believe I'm having a problem whose solution is simple, but it belies my utter naivete. Here it is:
The following code (VB in MS Access) raises a runtime error 424, Object Required, however it successfully moves the file.
mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName).Check
This code has the same outcome: 424, but a successful move.
Dim moveResult As TransferOperationResult
Set moveResult = mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName)
What am I missing? Any assistance will be much appreciated!