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
 
Back
Top