M
MBoozer
Need help. I strip the filename field in the following code to only display
the true file name and not the path. This works well and strips the local
path and the HyperLinkParts. For example,
c:/whatever/whatever/whatever/egghead.pdf dispalys in filename as
"egghead.pdf". However, if the LocalScanLink is populated with a filename
from a network drive (I:/whatever/whatever/egghead.pdf) it does not strip the
path and displays the full path. I've tried all variants and know I am
missing something in the +3 part of the code?
strPath = HyperlinkPart(Me!LocalScanLink, acAddress)
If Len(strPath) > 0 Then
Me!FileName = Mid(strPath, InStrRev(strPath, "/") + 3)
Me.NOMSDS = False
End If
the true file name and not the path. This works well and strips the local
path and the HyperLinkParts. For example,
c:/whatever/whatever/whatever/egghead.pdf dispalys in filename as
"egghead.pdf". However, if the LocalScanLink is populated with a filename
from a network drive (I:/whatever/whatever/egghead.pdf) it does not strip the
path and displays the full path. I've tried all variants and know I am
missing something in the +3 part of the code?
strPath = HyperlinkPart(Me!LocalScanLink, acAddress)
If Len(strPath) > 0 Then
Me!FileName = Mid(strPath, InStrRev(strPath, "/") + 3)
Me.NOMSDS = False
End If