D
deko
I have an Access 2003 mdb with a table named 'tblDocuments' that contains
Full Paths, like this:
[FullPath]
C:\Users\Administrator\MyDirectory\SomeFile.pdf
I want Select and Alias FullPath to FileName like this:
SELECT Dir([FullPath]) As FileName
FROM tblDocuments
WHERE (criteria);
But the Dir function returns a null string if 'SomeFile.pdf' does not exist.
What function can I use in my query to get FileName from FullPath regardless
if 'SomeFile.pdf' exists or not?
Thanks in advance.
Full Paths, like this:
[FullPath]
C:\Users\Administrator\MyDirectory\SomeFile.pdf
I want Select and Alias FullPath to FileName like this:
SELECT Dir([FullPath]) As FileName
FROM tblDocuments
WHERE (criteria);
But the Dir function returns a null string if 'SomeFile.pdf' does not exist.
What function can I use in my query to get FileName from FullPath regardless
if 'SomeFile.pdf' exists or not?
Thanks in advance.