G
Guest
I want the hyperlink address enetred into a field (LocalScanLink) to populate
a second field (FielName) with JUST the filename and it's extension, nothing
else. I finally got it to do this whereby the FileName field did not conatin
the hyperlink parts #...# in the field. However, if I insert a hyperlink that
is outside of the current directory of the db, or within the same directory
but in sub-directpry, the path is being dispalyed in the filename field
(X:/myfolder/etc.) Is there any way that I can strip the path from being
displayed as well? This is imperative that only the filename itself be
dispalyed in the FileName field. The code I have is:
If Len(Me!LocalScanLink & "") > 0 Then
Me!FileName = HyperlinkPart(Me!LocalScanLink, acAddress)
Else
Me!FileName = Null
End If
Please note I also tryed AcDisplayText in the above code and same probelm.
Thanks.
a second field (FielName) with JUST the filename and it's extension, nothing
else. I finally got it to do this whereby the FileName field did not conatin
the hyperlink parts #...# in the field. However, if I insert a hyperlink that
is outside of the current directory of the db, or within the same directory
but in sub-directpry, the path is being dispalyed in the filename field
(X:/myfolder/etc.) Is there any way that I can strip the path from being
displayed as well? This is imperative that only the filename itself be
dispalyed in the FileName field. The code I have is:
If Len(Me!LocalScanLink & "") > 0 Then
Me!FileName = HyperlinkPart(Me!LocalScanLink, acAddress)
Else
Me!FileName = Null
End If
Please note I also tryed AcDisplayText in the above code and same probelm.
Thanks.