从Access访问电子邮件的问题 [英] Problem Emailing From Access

查看:110
本文介绍了从Access访问电子邮件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MS Access中使用VBA发送电子邮件。相关的错误代码是:

I use VBA in MS Access to send e-mails. Relevant code for error is:

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号

推荐答案

是否有一行与相关联失败错误信息?


欢迎来到字节
Is there a line that it fails on with an associated error message?

Welcome to Bytes!


attachmentPath 来自哪里?是否有可能它不是真的为null,但可能是一个零长度的字符串,并且仍在执行.Add行?


Pat
Where is attachmentPath coming from? Is it possible that it is not really null, but perhaps a zero-length string, and still executing that .Add line?

Pat


AttachmentPath永远不会包含零长度字符串。代码在.Send行失败,错误287应用程序定义或对象定义错误
AttachmentPath never contains a zero length string. Code fails on the .Send line with error 287 "Application-defined or object-defined error"


这篇关于从Access访问电子邮件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆