Oldsoftboss
AWF VIP
- Local time
- Tomorrow, 05:32
- Joined
- Oct 28, 2001
- Messages
- 2,499
I am at a bit of a loss with the left/right functions to strip down a file name as follows:
I have a list of autocad reference files located at
E:\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
E:\Equipment Drawing Database\FANTECH FANS\AD314D.dwg
etc. These file paths are saved in a table.
When I access them from a networked computer the path is:
M:\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
\\DADSCOMPUTER\Back Up\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
What I am trying to achive is only saving the last bit of the file name ie:
\FANTECH FANS\AE404S.dwg and then combine it with the first bit with
Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)))
The trouble I am having is stripping the first bit of the file name when trying to save the last bit to the table.
Hope this makes sense to someone and they can help.
Dave
I have a list of autocad reference files located at
E:\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
E:\Equipment Drawing Database\FANTECH FANS\AD314D.dwg
etc. These file paths are saved in a table.
When I access them from a networked computer the path is:
M:\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
\\DADSCOMPUTER\Back Up\Equipment Drawing Database\FANTECH FANS\AE404S.dwg
What I am trying to achive is only saving the last bit of the file name ie:
\FANTECH FANS\AE404S.dwg and then combine it with the first bit with
Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)))
The trouble I am having is stripping the first bit of the file name when trying to save the last bit to the table.
Hope this makes sense to someone and they can help.
Dave