D
Dorci
Access 2002 - I can't email a report in Excel format. The following command
to email the report in Rich Text Format works fine.
===> DoCmd.SendObject acSendReport, stDocName, acFormatRTF, "PET Tooling
Schedule Dist List", , , stMsgSubject, stMsgText, -1
But when I change it to the following command, I get an error message that
the requested format is not available.
===> DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "PET Tooling
Schedule Dist List", , , stMsgSubject, stMsgText, -1
However, when I run the report manually, I can email it using the menu
command. It gives me the option to select Excel, and emails the report
successfully. Why won't the SendObject command accept the acFormatXLS option?
to email the report in Rich Text Format works fine.
===> DoCmd.SendObject acSendReport, stDocName, acFormatRTF, "PET Tooling
Schedule Dist List", , , stMsgSubject, stMsgText, -1
But when I change it to the following command, I get an error message that
the requested format is not available.
===> DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "PET Tooling
Schedule Dist List", , , stMsgSubject, stMsgText, -1
However, when I run the report manually, I can email it using the menu
command. It gives me the option to select Excel, and emails the report
successfully. Why won't the SendObject command accept the acFormatXLS option?