acFormatXLS is not available

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top