I'm trying to do something simple and I don't understand why it's not working. I'm really new to MS Access VBA.
I have a string in a textbox :
\\p9990cdc\C$\Temp
I want to turn it into :
C:\Temp
I'm trying :
strSelectedFile = Replace(strSelectedFile, "\\*\C$", "C:")
and it's not working.
Not sure why RegEx doesn't work either :
strSelectedFile = Replace(strSelectedFile, "\\[\w]\C$", "C:")
Everything is set properly so the problem lies exactly in that replace code, because if I try for example :
strSelectedFile = Replace(strSelectedFile, "C$", "C:")
It works and sucessfully replaces the C$ with C:
\p9990cdc\C:\Temp
How can I make this work?
Thanks a lot for your time!