本文介绍了可以使用SendObject发送多个附件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用SendObject发送2个报告。

像这样的东西会很好...


DoCmd SendObject A_REPORT,rpt1; " rpt2",A_FORMATRTF,MyRecip ,,,

MySubject,MyBodyText,0


....除了这个语法赢了''编译。


建议?

解决方案




你不能使用SendObject来做到这一点。你需要使用另一个邮件的自动化

程序。我使用Outlook和CDO库来完成这些工作。

的示例代码如下链接。






不能这样做。请参阅我的网站上的访问电子邮件常见问题解答。


Tony

-

Tony Toews,Microsoft Access MVP

请仅在新闻组中回复,以便其他人可以阅读整个邮件主题。

Microsoft Access Links,Hints,Tips&会计系统





I want to send 2 reports using SendObject.
Something like this would do nicely...

DoCmd SendObject A_REPORT, "rpt1";"rpt2", A_FORMATRTF, MyRecip, , ,
MySubject, MyBodyText, 0

....except for the fact that this syntax won''t compile.

Suggestions?

解决方案



You can''t use SendObject to do this. You need to use automation of another mail
program. I use Outlook and CDO libraries for this stuff. There is example code at
the link below.

http://www.mvps.org/access/modules/mdl0019.htm




Can''t do it. See the Access Email FAQ at my website for alternatives.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm





这篇关于可以使用SendObject发送多个附件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 12:26