Docmd.SendObject raises error 2282

G

Guest

Hi,
I'm developing in MSAccess 2000, on an XP Pro operating system, and using Outlook 2000. When I try to run the following line of code:

DoCmd.SendObject acSendReport, "Report1", "acFormatRTF", "(email address)", , , "subject line text", "Message body text",true

I get the following error Microsoft Visual Basic error message:
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 Windows Registry

I did a full install of MSoffice 2000, and this problem is happening on all machines that are running this configuration. Any advice would be much appreciated.
 
G

Guest

Sorry - stupid mistake, I got rid of the quotes surrounding the Access constant acFormatRTF, and now it works fine.
 

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

Top