Opening a word document within Access

RichiHardie

New member
Local time
Today, 06:43
Joined
Sep 6, 2006
Messages
6
I've used the Outputto method to archive reports creted in Access to Word in .rtf.

I now want to have an option to view these archives from Access. How?

Thanks,

Richard
 
When using OutputTo - there is an Autostart option, if you set that to True, it should fire up the document you just created in the default editor (Word in your case).

Alternatively, if you are after opening docs that were created previously, I believe the Shell function will help - have a look on this forum for help with that, there have been loads of examples.

You will probably need to use Shell to open Word, and pass it the document path. Will probably be something like:

Shell("C:\Program Files\Microsoft Office\Office\Winword.exe C:\MyDoc.rtf")

I think!
 
I prefer to use the ShellExecute method to open a file. It does not have the problems and limitations that the Shell() function does.

I have a working example in my Browse [Find a directory or file] sample.
 

Users who are viewing this thread

Back
Top Bottom