R
ronpassaro
Hi,
I've seen a lot of posts about how to open files from within Access as
well as opening folders in Windows Explorer. The latter can be done by:
Retval = Shell("explorer /e,/root, C:\My Dir", vbMaximizedFocus)
where "C:\My Dir" can be replaced with any path.
How can I use the same command and instead of putting the path in the
code itself, have the path be the contents of a text box. I would like
to do this in 2 ways:
If my textbox is called [PATH], and the value is:
N:/CP/23132/111/BOOKS, have the exact path open in explorer.
If [PATH] doesn't have the drive name and is only: CP/23132/111/BOOKS,
how do I add the drive name in the code so that it recognizes [PATH] to
be the rest of the directory, ie N:/[PATH]?
Thanks very much in advance,
-Ron
I've seen a lot of posts about how to open files from within Access as
well as opening folders in Windows Explorer. The latter can be done by:
Retval = Shell("explorer /e,/root, C:\My Dir", vbMaximizedFocus)
where "C:\My Dir" can be replaced with any path.
How can I use the same command and instead of putting the path in the
code itself, have the path be the contents of a text box. I would like
to do this in 2 ways:
If my textbox is called [PATH], and the value is:
N:/CP/23132/111/BOOKS, have the exact path open in explorer.
If [PATH] doesn't have the drive name and is only: CP/23132/111/BOOKS,
how do I add the drive name in the code so that it recognizes [PATH] to
be the rest of the directory, ie N:/[PATH]?
Thanks very much in advance,
-Ron