In testing a new function to email reports with the report embedded within the body of the email, I get only a portion of the report as an HTML attachment. The report has header, detail and footer sections that are comprised strictly of label and text box controls. The text box controls are a mix of bound and unbound.
This is my first attempt to use the acSendReport of SendObject. My email client's compose properties stipulate HTML and plain text. I have manually embedded HTML for years, so I'm not suspicious of compose properties. However, there are functions involved in the setting of Control Source in a few of the unbound text boxes.
It's my understanding that there are some restrictions with controls in a report. Am I expecting too much here?
(InvID is a global variable that the report picks up in its Open Event to set a RecordSource filter.)
Code:
InvID = 109
DoCmd.SendObject acSendReport, "rptInvitation", acFormatHTML, "wcsreno@gmail.com", , , "Spring Retreat", , False