I have an Access 2007 database that was running in Windows XP with Outlook Express. On one of the invoicing forms I had an Email Invoice button that would open up a blank email in Outlook Express with the subject "(Company Name) Invoice" and a report attached as an html file.

The command I was running was:

Code:
DoCmd.SendObject acSendReport, "repInvoice", acFormatHTML, , , , "Company Name Invoice", , , "Z:\template.html"
I just recently upgraded all of our computers to Windows 7 and Outlook 2007 and this function no longer works.

The message I get is:

Run-time error '2587':

Company Database Name can't complete the Output operation.
I read in other threads that Access 2007 doesn't like blank options so I set the commands to:

Code:
DoCmd.SendObject acSendReport, stDocName, acFormatHTML, "", "", "", "Company Name Invoice", "", True, "Z:\template.html"
And still the same thing...

Interestingly this command works completely fine:

Code:
DoCmd.SendObject acSendNoObject, , , , , , "Test Subject", "Test Message", True
Any help would be greatly appreciated.