MS-Access 2007 运行时 SendObject 崩溃
我使用 Access 2007 编写了一个 Access 数据库程序。我有一个指向事件的按钮:DoCmd.SendObject acSendReport,以通过电子邮件发送 PDF 报告 (acFormatPDF)。 在正常的 Access 2007 程序中一切正常,但是当用户使用 Access 2007 Runtime 打开该程序时,单击此按钮时,它将执行正常步骤(通知 Outlook、等待允许/拒绝许可),然后单击允许,程序因运行时错误而崩溃。
有人知道这是怎么回事吗? 这是 Access Runtime 的正常错误吗? 我尝试过其他文件格式(RTF 和 XLS)而不是 PDF,但似乎是 SendObject 命令导致运行时环境崩溃?
说明:发生此崩溃时,Access Runtime 不会输出错误代码。 只是一个窗口,指出“发生运行时错误”。
I have programmed an Access Database program using Access 2007. I have a button that points to the event: DoCmd.SendObject acSendReport to have it email a PDF report (acFormatPDF). Everything works fine in the normal Access 2007 program, but when a user opens the program with Access 2007 Runtime, when clicking on this button it goes through the normal steps (notifying Outlook, waiting for Allow/Deny clearance), and then after you click Allow, the program crashes with a Runtime Error.
Does anybody know what is going on here? Is this a normal error with Access Runtime? I have tried other file formats (RTF and XLS) instead of PDF, but it seems to be the SendObject command that is crashing the Runtime Environment?
Clarification: Access Runtime does not output an error code upon this crash. Just a window stating a "runtime error has occurred".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论