我在MS Access VBA中定义了以下功能:
Function SendToEMail(iTo As String, iFrom As String, icc As String, ibcc As String, iSubject As String, iBody As String, iSystem As String, iAttachments As String)
strSQL = "INSERT INTO tblEmail ([To], [From], [CC], [BCC], [Subject], [Body], [Create_Time], [System], [Attachments]) IN '\\ahmtroy03\Email.accdb' VALUES ('" & iTo & "', '" & iFrom & "', '" & icc & "', '" & ibcc & "', '" & iSubject & "', '" & iBody & "', #" & Now() & "#, '" & iSystem & "', '" & iAttachments & "');"
DoCmd.RunSQL strSQL
End Function
此函数将记录插入表中。每条记录都是电子邮件。当附加到此表时,我得到错误3075并且它引用[To]字段。我已经更改了一些隐私信息。所有其他发行版都可以通过,但是这个版本没有成功。
firstname.last-name@something-corporation.com,firstname.last-name @ something-corporation.com,firstname.lastname @ something-corporation.com,firstname.lastname @ something-coorporation.com,firstname.lastname @ something-corporation.com,firstname.lastname @ something-corporation.com