Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.OutputTo (MS Word) Format

Status
Not open for further replies.

rcoutts

Technical User
Sep 5, 2001
60
0
0
US
I want to export my report to Microsoft Word. When I run the command from VB:

DoCmd.OutputTo acOutputReport, "rptInvoice", ".rtf", "MyReport"

I get the error:
Code:
  "Run-time error '2282':

   The formats that enable you to output 
   data as a Microsoft Excel, rich-text format, 
   MS_DOS text, or HTML file are missing from 
   the Wondows Registry."
After some debugging its looking like I'm I have the wrong parameter to specify MS Word (i.e., ".rtf" is wrong). I can't find any online documentation on this. What value does one use to spec MS Word?

Thanks!
Rich
 
Found my problem. acFormatRTF is what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top