I have been using the following code to send a report to lotus notes email client as an embedded html in the body of an email.
It has been working well until this morning when Access was forced to shutdown. When I run this piece of script the report is not embedding as an HTML but instead attaching itself to the bottom of the email as an .xls with the naming convention of "CDB**.xls".
Does anyone know what might be going on and can recommend a fix?
Thanks, James
It has been working well until this morning when Access was forced to shutdown. When I run this piece of script the report is not embedding as an HTML but instead attaching itself to the bottom of the email as an .xls with the naming convention of "CDB**.xls".
Code:
DoCmd.SendObject objecttype:=acSendReport, _
ObjectName:=strDocName, outputformat:=acFormatHTML, _
To:=strEmail, Subject:=strMailSubject, MessageText:=strMsg
Does anyone know what might be going on and can recommend a fix?
Thanks, James