Open pdf file

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi,
For my Access 2000 application, on my Main Menu, I paln
to add an button, so the users can click the button and
read an pdf document. Now the document is located in
c:\program file folder.
How can I code in the On Click event, to open the
document?
Thanks for your help.
 
May I ask you where I would add my filename to this code? I tried it in the
immediate window and it worked, but being new, I do not know how to add it to
the permanent code. Thank you.

Graham Mandeno said:
Hi Paul

Go to http://www.mvps.org/access/api/api0018.htm where you will find some
code to launch a document using the application associated with its filename
extension. You should fild it fairly self-explanatory.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Paul said:
Hi,
For my Access 2000 application, on my Main Menu, I paln
to add an button, so the users can click the button and
read an pdf document. Now the document is located in
c:\program file folder.
How can I code in the On Click event, to open the
document?
Thanks for your help.
 
You just need to call the function, and pass a variable or the name of a
textbox or whatever as the filename argument:

Call fHandleFile(Me.txtFileToLaunch, WIN_NORMAL)

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

EdS said:
May I ask you where I would add my filename to this code? I tried it in
the
immediate window and it worked, but being new, I do not know how to add it
to
the permanent code. Thank you.

Graham Mandeno said:
Hi Paul

Go to http://www.mvps.org/access/api/api0018.htm where you will find some
code to launch a document using the application associated with its
filename
extension. You should fild it fairly self-explanatory.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Paul said:
Hi,
For my Access 2000 application, on my Main Menu, I paln
to add an button, so the users can click the button and
read an pdf document. Now the document is located in
c:\program file folder.
How can I code in the On Click event, to open the
document?
Thanks for your help.
 
Appreciate that!

Graham Mandeno said:
You just need to call the function, and pass a variable or the name of a
textbox or whatever as the filename argument:

Call fHandleFile(Me.txtFileToLaunch, WIN_NORMAL)

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

EdS said:
May I ask you where I would add my filename to this code? I tried it in
the
immediate window and it worked, but being new, I do not know how to add it
to
the permanent code. Thank you.

Graham Mandeno said:
Hi Paul

Go to http://www.mvps.org/access/api/api0018.htm where you will find some
code to launch a document using the application associated with its
filename
extension. You should fild it fairly self-explanatory.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Hi,
For my Access 2000 application, on my Main Menu, I paln
to add an button, so the users can click the button and
read an pdf document. Now the document is located in
c:\program file folder.
How can I code in the On Click event, to open the
document?
Thanks for your help.
 
Back
Top