M
Mike
I wanted to extract the filename from a file path that is imported in
a table. I created a query and entered
Then I tried to use
I received the start of the filename, but still had the filename
extension.
If I use
This looks to me as if it is possible to strip a path only once in a
query column with a combined function.
Can anybody confirm this, or is there a way to get this all in one
query column?
Thanks in advance.
a table. I created a query and entered
in seperate columns of the query.startposition: Len([filename])-(Len([filename])-InStrRev([filename],"\"))<< and
endposition: Len([filename])-(Len([filename])-InStrRev([filename],"."))<<
Then I tried to use
Expr1: Mid([filename],[startposition],[endposition])<<
I received the start of the filename, but still had the filename
extension.
If I use
I get the full path up to the "." of the file extension.left([filename],[endposition])<<
This looks to me as if it is possible to strip a path only once in a
query column with a combined function.
Can anybody confirm this, or is there a way to get this all in one
query column?
Thanks in advance.