open word doc

  • Thread starter יריב החביב
  • Start date
×

יריב החביב

Hello,

Can you, Please, write me the code to open word document (c:\"tamar")


from access application .


thank you



תודה רבה
 
A

Albert D. Kallal

???? ????? said:
Hello,

Can you, Please, write me the code to open word document (c:\"tamar")


from access application .

Simple go:

application.FollowHyperlink "name of document"


The "name of document" needs to be replaced with the name of the document
you want to open. It works for all applications.

eg:


application.FollowHyperlink "c:\mypdf\Info.pdf"

Above would open a pdf document

application.FollowHyperlink "c:\mypExcelStuff\Budget.xls"

Above would open a excel document

application.FollowHyperlink "c:\"tamar.doc"

The above would open a word document....
 
×

יריב החביב

thank you albert,

Is it another way (code) without using hiperlink ?
 
Top