how to open a file use its full directory in access 2003

C

cyndi

i know how to active an exe file by Shell() function, but if i want to open
the file has the directory like "c:\my document\001.jpg ", which function
should i use, i try shell() too, but it does not work, and tell me the
argument is wrong.

would you please tell me how to open the file excepte the exe file, thanks

any help wil be appreciate
 
A

Allen Browne

Shell works for an executable.

To start a document with whatever program program is registered to handle
it, use FollowHyperlink.

If you prefer an API call, use ShellExecute:
http://www.mvps.org/access/api/api0018.htm

To get FollowHyperlink to work, you may need to Replace() special
characters, e.g. replace # with %23
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top