Ayon kay Martin (Martin Lee):
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10651
> How can I "stick" one of my own WORD file or EXCEL file on an ACCESS FORM ?
>
> When the users open this FORM, they only need to click the WORD(or EXCEL)
> icon to open my WORD or EXCEL file.
>
> Thanks!
hi martin,
you can open an excel file using this vba.
say you have a commandbutton, copy and paste the
code below to the click event of that button.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10651
Dim ExcelApp As Object
Set ExcelApp = CreateObject("Excel.Application")
Shell ExcelApp.Path & "\excel.exe " & "C:\book1.xls"
Set ExcelApp = Nothing
you have to replace "C:\book1.xls" with the path of your
excel file.
if you would like to open a word document use this instead
Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
Shell WordApp.Path & "\winword.exe " & "C:\arthur.doc"
Set WordApp = Nothing
HTH