![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, In AccessXP using Left, Mid, Instr, or whatever works I'm look to extract just the file name from a UNC style given path as in; "\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Project sTracker\Apps \StrStorage.dll" I've tried several combinations in vba code but failed to extract just StrStorage.dll...... ![]() thanks bobh. |
#3
| |||
| |||
|
|
mid("\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Pro jectsTracker\Apps\StrStor*age.dll",instrrev("\\Dfs 01\shared\HAN\SHARED1\CLOps\CLCommon\ProjectsTrack e*r\Apps\StrStorage.dll","\")+1) "bobh" <vulca... (AT) yahoo (DOT) com> wrote in message news:d095dbc9-1801-415c-8664-23fe17ad1f19 (AT) bi2g2000vbb (DOT) googlegroups.com... Hi All, In AccessXP using Left, Mid, Instr, *or whatever works *I'm look to extract just the file name from a UNC style given path as in; "\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Project sTracker\Apps \StrStorage.dll" I've tried several combinations in vba code but failed to extract just StrStorage.dll...... * ![]() thanks bobh.- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
mid("\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Pro jectsTracker\Apps\StrStorage.dll",instrrev("\\Dfs0 1\shared\HAN\SHARED1\CLOps\CLCommon\ProjectsTracke r\Apps\StrStorage.dll","\")+1) |
#5
| |||
| |||
|
|
On Mon, 12 Sep 2011 16:10:37 -0500, "ron paii" <none (AT) nospam (DOT) com wrote: mid("\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Pro jectsTracker\Apps\StrStorage.dll",instrrev("\\Dfs0 1\shared\HAN\SHARED1\CLOps\CLCommon\ProjectsTracke r\Apps\StrStorage.dll","\")+1) I keep forgeting about instrrev. I also don't recall what version it was introduced in. Likely in A2000 or A97. Thanks for the reminder. Tony -- Tony Toews, Microsoft Access MVP Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/ For a convenient utility to keep your users FEs and other files updated see http://www.autofeupdater.com/ |
#6
| |||
| |||
|
|
"Tony Toews" <ttoews (AT) telusplanet (DOT) net> wrote in message news:0mrv67psor4g7qp61ciu1h4ad229i05bbe (AT) 4ax (DOT) com... On Mon, 12 Sep 2011 16:10:37 -0500, "ron paii" <none (AT) nospam (DOT) com wrote: mid("\\Dfs01\shared\HAN\SHARED1\CLOps\CLCommon\Pro jectsTracker\Apps\StrStorage.dll",instrrev("\\Dfs0 1\shared\HAN\SHARED1\CLOps\CLCommon\ProjectsTracke r\Apps\StrStorage.dll","\")+1) I keep forgeting about instrrev. I also don't recall what version it was introduced in. Likely in A2000 or A97. Thanks for the reminder. Just discovered it, I needed to extract the extension from file names that have multiple periods. Moved from A97 to A2010; Don't think A97 had it. |
#7
| |||
| |||
|
|
You could get it in A97 by adding a reference to the Windows Scripting Runtime dll. |
![]() |
| Thread Tools | |
| Display Modes | |
| |