From Access to Word

  • Thread starter Thread starter Lodewijk Olthof
  • Start date Start date
L

Lodewijk Olthof

In MS Access i have a form with a field called Filename. In that field the
filename (C:\WIN\TEST.DOC) of a document is listed.
Now on the same form I want to make a button. When clicking that button,
Wordt opens with the file form the field Filename.

What is the code to use with the On Click Button?

Lodewijk
 
Lodewijk,

If you want to use a macro for this, RunApp would be the applicable
macro action. In the CommandLine argument, I think you would put...
="C:\Program Files\..pathTo Word..\WinWord.exe" & " " & [Filename]

- Steve Schapel, Microsoft Access MVP
 

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

Back
Top