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, "\\ ", "\")
0

1 Answer 1

2

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

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

should be:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .