Open a specified file with a command button

W

wilfried

I work with access and I try to create a command button to open a
word-file. The file is by instance document1.doc in the directory c:\My
Documents\examples\document1.doc
 
J

Jean-Guy Marcil

wilfried was telling us:
wilfried nous racontait que :
I work with access and I try to create a command button to open a
word-file. The file is by instance document1.doc in the directory
c:\My Documents\examples\document1.doc

And the question is?

If you are looking for the Word Object Model syntax to open a document:

Documents.Open("C:\My Documents\examples\document1.doc")

If this isn't what you are looking for, ask a question!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
W

wilfried

Sorry for the bath formulation of the question. I don't know the code
for the command button to open the specified word-File 'document1;Doc'
in the given directory.

Thanks for the information you wrote already.

Jean-Guy Marcil schreef:
 
Top