var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Run-time error '2587' - Office 2007 SendObject
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:
I just recently upgraded all of our computers to Windows 7 and Outlook 2007 and this function no longer works.
DoCmd.SendObject acSendReport, "repInvoice", acFormatHTML, , , , "Company Name Invoice", , , "Z:\template.html"
The message I get is:
I read in other threads that Access 2007 doesn't like blank options so I set the commands to:
Run-time error '2587':
Company Database Name can't complete the Output operation.
And still the same thing...
DoCmd.SendObject acSendReport, stDocName, acFormatHTML, "", "", "", "Company Name Invoice", "", True, "Z:\template.html"
Interestingly this command works completely fine:
Any help would be greatly appreciated.
DoCmd.SendObject acSendNoObject, , , , , , "Test Subject", "Test Message", True
Tags for this Thread