M
M Skabialka
I have an Access 2003 form that lists documents and their path using a
listbox. Users can select these and double-click to open them.
Except that I found some documents with commas in their name. The command I
use is:
Call Shell("Explorer.exe " & txtFilePath, vbNormalFocus) which contains info
like this:
Call Shell("Explorer.exe G:\Resumes\Smith, Jones 12/12/07", vbNormalFocus)
which gives an error, and seems to select the text after the comma for this
message:
The path 'Jones 12/12/07' does not exist or is not a directory
The file does not open.
If I put
G:\Resumes\Smith, Jones 12/12/07
in an Explorer Window it opens the document, so I don't think Windows XP is
the problem.
How can I resolve this in trying to open these docs from Access (there are
too many with commas to ignore or rename).
Thanks,
Mich
listbox. Users can select these and double-click to open them.
Except that I found some documents with commas in their name. The command I
use is:
Call Shell("Explorer.exe " & txtFilePath, vbNormalFocus) which contains info
like this:
Call Shell("Explorer.exe G:\Resumes\Smith, Jones 12/12/07", vbNormalFocus)
which gives an error, and seems to select the text after the comma for this
message:
The path 'Jones 12/12/07' does not exist or is not a directory
The file does not open.
If I put
G:\Resumes\Smith, Jones 12/12/07
in an Explorer Window it opens the document, so I don't think Windows XP is
the problem.
How can I resolve this in trying to open these docs from Access (there are
too many with commas to ignore or rename).
Thanks,
Mich