2

I am concatenating two fields, however in some cases the second field begins with \, but not always.

I'm trying to remove the possible extraneous \ using replace.

stDigitalFolderLocation = stDigitalLocation & "\" & stDigitalFolder
stDigitalFolderLocation = replace(stDigitalFolderLocation, "\\ ", "\")
Giacomo1968
  • 58,727
Ali Kayn
  • 51
  • 2

1 Answers1

2

Apologies, looking with fresh eyes I noticed an extra space.

stDigitalFolderLocation = replace(stDigitalFolderLocation, "\\ ", "\")

should be:

stDigitalFolderLocation = replace(stDigitalFolderLocation, "\\", "\")
Ali Kayn
  • 51
  • 2