Public Function fGet_Filename(strFilename As String) As String
Dim numLength As Integer
Dim i As Integer
numLength = 0
For i = 1 To Len(strFilename)
If Mid(strFilename, i, 1) = "\" Then
numLength = i
Else: numLength = numLength
End If
Next i
fGet_Filename = Right(strFilename, (Len(strFilename) - numLength))
End Function
Filename: fGet_Filename([Your_Filepath_Field])
Filename: Iif([Your_Filepath_Field] Is Null,'No Filepath Given',fGet_Filename([Your_Filepath_Field]))
Function GetFileFromPath(strFileName As String) As String
Dim intPos As Integer
Do While InStr(intPos + 1, strFileName, "\") > 0
intPos = InStr(intPos + 1, strFileName, "\")
Loop
GetFileFromPath = Mid(strFileName, intPos + 1)
End Function
Function GetFileFromPath2K(strFileName As String) As String
GetFileFromPath2K = Mid(strFileName, InStrRev(strFileName, "\") + 1)
End Function