Docmd.SendObject raises error 2282

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Sorry - stupid mistake, I got rid of the quotes surrounding the Access constant acFormatRTF, and now it works fine.
 
Back
Top